PDF Converter 2.51 : activex - function open

If you are a Power Builder developer and have any questions about using our products from Power Builder here is the place to post them.
Post Reply
cedric
Posts: 25
Joined: Thu Jun 16 2005

PDF Converter 2.51 : activex - function open

Post by cedric »

:o I try to open pdf documents to merge them using pdf converter activex :

script :
doc1 = create oleobject
doc2 = create oleobject

doc1.ConnectToNewObject("cdintfEx.document")
doc2.ConnectToNewObject("cdintfEx.document")

doc1.Open (<fic_arriere_plan>)
doc2.Open (<fic_avant_plan>)

doc1.mergeEx (doc2, 1)

doc1.Save (<fic_genere>)

Destroy doc1
Destroy doc2


:shock:
The first time I run the script, a system error occurs and the application fails with error in function open (on doc1).
The following times, there is no error.
I don't understand ?
Moreover, there's no explicit return value to the open function in case of error.
Do anybody has the problem ?

Thanks in advance.
Post Reply