Nothing executes after "Object.DoVerb"

PDF-XChange Viewer SDK for Developer's
(ActiveX and Simple DLL Versions)

Moderators: TrackerSupp-Daniel, Tracker Support, Vasyl-Tracker Dev Team, Chris - Tracker Supp, Sean - Tracker, Ivan - Tracker Software, Tracker Supp-Stefan

Post Reply
Erickc
User
Posts: 46
Joined: Tue Apr 12, 2016 2:36 pm

Nothing executes after "Object.DoVerb"

Post by Erickc »

Hello,

I have problems with PDF-XChange Viewer ActiveX Control in a PowerBuilder 12.5.2 client application.

When I call the doVerb method, it works but any instruction that would come after in my code isn’t executed. It’s just as if PowerBuilder lose control.

For example, a function used to rotate the displayed document :

Code: Select all

Function of_rotate (asrotation)

Any        aIn, oOut, oOut2
long       l_nb_pages

Ole_PDF.Object.SetProperty( "Operations.RotatePages.RangeType", '1', 0)
Ole_PDF.Object.SetProperty( "Operations.RotatePages.Direction", asRotation, 0)

Ole_PDF.Object.GetProperty("Documents.Count", ref oOut2, 0);
l_nb_pages = oOut2

SetNull( aIn )
SetNull( oOut )
Ole_PDF.Object.DoVerb("Documents[0]", "RotatePages", aIn, oOut, FlagNoUI )

i2 = 2
Return( Success )
On a call to of_rotate('ClockWise') at a button press, the document is rotated be the instruction i2 = 2 doesn’t execute and there is no Return(Success).

But I can press again the same button to rotate again the document.

I have the same result with another function used to summarize annotations :

Code: Select all

Any        dataIn, dataOut
SetNull( dataIn )
SetNull( dataOut )

ole_pdf.Object.SetProperty("Operations.SummarizeAnnots.Output.TXT.FileName", ‘toto.txt’)
ole_pdf.Object.SetProperty('Operations.SummarizeAnnots.Output.TXT.FolderName', ‘C:\Temp\’)
ole_pdf.Object.DoVerb("Documents[0]", "SummarizeAnnots", dataIn,  dataOut,  2)

i1 = 1

return(Success)
summarizeAnnots works but neither 1 = 1 or retrun(Success) execute.

When traced in the debugger of PowerBuilder, everything stops after doVerb.

I know PowerBuilder is not really used a lot but maybe someone could gives me some general hints.

Thank you ! :D

Eric
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17889
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Nothing executes after "Object.DoVerb"

Post by Tracker Supp-Stefan »

Hello Eric,

I have asked my colleagues from the dev team to take a look, but we might not have people with vast experience with PowerBuilder.
While the guys are looking at this - can you try our Full Demo projects - do these work correctly for you?

Cheers,
Stefan
Erickc
User
Posts: 46
Joined: Tue Apr 12, 2016 2:36 pm

Re: Nothing executes after "Object.DoVerb"

Post by Erickc »

Thank you Stefan,

I will try the Full Demo project and let you know if I get more success with doVerb.

Cheers,
Eric
User avatar
Tracker Supp-Stefan
Site Admin
Posts: 17889
Joined: Mon Jan 12, 2009 8:07 am
Location: London
Contact:

Re: Nothing executes after "Object.DoVerb"

Post by Tracker Supp-Stefan »

Thanks Eric,

Let us know how your tests go!

Regards,
Stefan
Erickc
User
Posts: 46
Joined: Tue Apr 12, 2016 2:36 pm

Re: Nothing executes after "Object.DoVerb"

Post by Erickc »

Hello Stefan,

A quick note to let you know that probably more than likely, the doVerb problems were caused by some PowerBuilder quirks that we were finally able to get around.

Best regards!

Eric
User avatar
John - Tracker Supp
Site Admin
Posts: 5219
Joined: Tue Jun 29, 2004 10:34 am
Location: United Kingdom
Contact:

Re: Nothing executes after "Object.DoVerb"

Post by John - Tracker Supp »

Excellent news - thanks Erickc :)
If posting files to this forum - you must archive the files to a ZIP, RAR or 7z file or they will not be uploaded - thank you.

Best regards
Tracker Support
http://www.tracker-software.com
Post Reply