on 03-27-2017 3:37 PM
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
Hi rashmi,
Install Ghostscript and then perfrom your activity
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.