cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

powerbuilder

Former Member
1,144

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

Accepted Solutions (0)

Answers (4)

Answers (4)

Former Member
0 Likes

Hi rashmi,

Install Ghostscript and then perfrom your activity

Former Member
0 Likes

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.

Former Member
0 Likes

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

Former Member
0 Likes

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