Skip to Content
1

powerbuilder

Mar 27, 2017 at 02:37 PM

157

avatar image

Hi All,

I am saving a data window as PDF from my application.

dw_1.saveas("path", PDF, TRUE)

when the above code is executing, it is making an hourglass pointer.

I am using below code to create pdf from my application.

dw_1.Object.DataWindow.Export.PDF.Method = Distill!
dw_1.Object.DataWindow.Printer = "\\prntsrvr\pr-6"
dw_1.Object.DataWindow.Export.PDF.  &
 Distill.CustomPostScript="Yes"

I do not want to display hours glass to user,which prevent them to continue their work.

Is there any solution for this.

Thanks

Rashmi

10 |10000 characters needed characters left characters exceeded
* Please Login or Register to Answer, Follow or Comment.

3 Answers

Chris Pollach Mar 27, 2017 at 09:40 PM
0

Hi Rashmi;

You have a few choices ...

1) Use PB's muli-threading feature (aka SharedObject) to perform the PDF generation asynchronously. - or -

2) Create another EXE and call it from your PB App to create the PDF

3) Call a Web Service - built using a PB NVUO and generate the PDF in the WS.

HTH

Regards ... Chris

Share
10 |10000 characters needed characters left characters exceeded
Rashmi Giri Mar 28, 2017 at 11:00 AM
0

HI Chris,

The issue is when I am creating the PDF , it is sending print job to the printer.

as this is a related to OS process so it is making hours glass( we are creating a pdf with help of a printer which is configure in my machine).

can we avoid it.

Thanks

Rashmi

Share
10 |10000 characters needed characters left characters exceeded
A V Mar 28, 2017 at 01:34 PM
0

You can also generate a PDF by exporting as pdf instead of printing.

dw_1.SaveAs (ls_fileName, PDF!, True) 

It will still HourGlass, but you can work with other windows applications if that is what you want. If not, then you have to perform the export asynchronously as Chris suggested.

Share
10 |10000 characters needed characters left characters exceeded