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 )
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)
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 !
Eric