Skip to Content
avatar image
Former Member

powerbuilder

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

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

4 Answers

  • avatar image
    Former Member
    Mar 27, 2017 at 09:40 PM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 28, 2017 at 11:00 AM

    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

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Mar 28, 2017 at 01:34 PM

    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.

    Add comment
    10|10000 characters needed characters exceeded

  • Mar 18 at 06:14 AM

    Hi rashmi,

    Install Ghostscript and then perfrom your activity

    Add comment
    10|10000 characters needed characters exceeded