Group:  Other Microsoft Office Products » microsoft.public.onenote
Thread: API Onenote 2007 - publish

Geek News

API Onenote 2007 - publish
Axel Rassart 5/25/2007 7:07:01 PM
After a lot of readings, and googling (2 days) , i still was not able to have
the method publish of onenote 2007 working.

By any chance, is anybody can send me a sample or a link of the use of this
method.

Sorry for my english syntax, I usually write in french.

TY


Re: API Onenote 2007 - publish
Ilya Koulchin <ikoulchine[ at ]hotmail.com> 5/26/2007 1:00:55 AM
Axel Rassart wrote:
[Quoted Text]
> After a lot of readings, and googling (2 days) , i still was not able to have
> the method publish of onenote 2007 working.

How're you calling the code, and what error are you getting back?

Ilya
Re: API Onenote 2007 - publish
Axel Rassart 5/28/2007 4:31:00 PM
VBNET:

onApp.Publish("{98087255-B711-4BDC-9C53-F070E038D443}{1}{B0}",
"TEST998.pdf", PublishFormat.pfPDF)

I copy then ID from omspy, the onApp object is ok (i build a page).

The error message is: Chaîne de classe incorrecte (Exception de HRESULT :
0x800401F3 (CO_E_CLASSSTRING))

Thank You

"Ilya Koulchin" wrote:

[Quoted Text]
> Axel Rassart wrote:
> > After a lot of readings, and googling (2 days) , i still was not able to have
> > the method publish of onenote 2007 working.
>
> How're you calling the code, and what error are you getting back?
>
> Ilya
>
Re: API Onenote 2007 - publish
Ilya Koulchin <ikoulchine[ at ]hotmail.com> 5/29/2007 5:22:47 PM
Axel Rassart wrote:
[Quoted Text]
> VBNET:
>
> onApp.Publish("{98087255-B711-4BDC-9C53-F070E038D443}{1}{B0}",
> "TEST998.pdf", PublishFormat.pfPDF)
>
> I copy then ID from omspy, the onApp object is ok (i build a page).
>
> The error message is: Chaîne de classe incorrecte (Exception de HRESULT :
> 0x800401F3 (CO_E_CLASSSTRING))

Try explicitly passing null or the empty string as the fourth arument to
publish. Does that work?

Ilya
Re: API Onenote 2007 - publish
Axel Rassart 5/29/2007 7:33:01 PM
This correct an error (the one for the parameter, before i was trying "0" as
the api documentation suggest),

After i got a second error, file not found error (code 2006), i had to
specify the path for the output file (pdf) to correct the second one.

Thank you very much Ilya.

AR

"Ilya Koulchin" wrote:

[Quoted Text]
> Axel Rassart wrote:
> > VBNET:
> >
> > onApp.Publish("{98087255-B711-4BDC-9C53-F070E038D443}{1}{B0}",
> > "TEST998.pdf", PublishFormat.pfPDF)
> >
> > I copy then ID from omspy, the onApp object is ok (i build a page).
> >
> > The error message is: Chaîne de classe incorrecte (Exception de HRESULT :
> > 0x800401F3 (CO_E_CLASSSTRING))
>
> Try explicitly passing null or the empty string as the fourth arument to
> publish. Does that work?
>
> Ilya
>
Re: API Onenote 2007 - publish
Ilya Koulchin <ikoulchine[ at ]hotmail.com> 5/29/2007 9:59:57 PM
Could you give me a link to the documentation that you were referring to?

Ilya

Axel Rassart wrote:
[Quoted Text]
> This correct an error (the one for the parameter, before i was trying "0" as
> the api documentation suggest),
>
> After i got a second error, file not found error (code 2006), i had to
> specify the path for the output file (pdf) to correct the second one.
>
> Thank you very much Ilya.
>
> AR
>
> "Ilya Koulchin" wrote:
>
>> Axel Rassart wrote:
>>> VBNET:
>>>
>>> onApp.Publish("{98087255-B711-4BDC-9C53-F070E038D443}{1}{B0}",
>>> "TEST998.pdf", PublishFormat.pfPDF)
>>>
>>> I copy then ID from omspy, the onApp object is ok (i build a page).
>>>
>>> The error message is: Chaîne de classe incorrecte (Exception de HRESULT :
>>> 0x800401F3 (CO_E_CLASSSTRING))
>> Try explicitly passing null or the empty string as the fourth arument to
>> publish. Does that work?
>>
>> Ilya
>>

Home | Search | Terms | Imprint Contact
Newsgroups Reader - provided by WiredBox.Net