I am using PowerBuilder 2017. The database is MS SQL Server 2016.
My application has a function that creates a PDF with the following code:
ls_folderfile = "\\APPSERVER\PDF\picklist870024818111309365604.pdf"
adw_rpt.Object.DataWindow.Export.PDF.Method = NativePDF!
adw_rpt.Object.DataWindow.Export.PDF.NativePDF.CustomSize=0
li_return = adw_rpt.SaveAs(ls_folderfile, PDF!, true)
etc...…….
NOTE: adw_rpt is a datawindow type argument passed by reference to this function sent from another object.
It works correctly on my PC where I develop and "test-run" the application. I am using a windows 10 PC.
However, when I install it on my client's system I am having a problem.
The PDF contains the wrong data. It creates the PDF with data that is not currently contained in adw_rpt. It is picking up a datawindow used previously in the same function, as if it was in memory .
One time it re-created just page 5 of a PDF it created earlier the same day.
Another time it re-created a PDF from a few days before.
It looks like one user gets the information from the last PDF created by another user.
What can cause this?
Am I doing something wrong?
Is there something I can do to make sure it creates the PDF with the correct and current datawindow data.
Thank you for any help
Jon Stoller
AKA Software
973-720-8211
jon@akaware.com