Export PDF Without Dialog

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
nehir_nehir
User
Posts: 31

Export PDF Without Dialog

Post by nehir_nehir »

I use two functions while the PDF is output.

1) Page Exporting
2) Page Exported

What I want to do is:
1) In the Page Exporting function, is it possible to write in the code where the file should be saved before the dialog window opens?

2) In Page Exported, is it possible that I do not know where the file is saved?


arbei
User
Posts: 9286

Post by arbei »

Read the definition of Page_Exporting and Page_Exported Server Events in help file topic: "Server Events and Client Scripts".

And I think you may need to use the Page_DataRendering for adding code to the PDF.


nehir_nehir
User
Posts: 31

Post by nehir_nehir »

Sorry, the answer is unfortunately not there!


arbei
User
Posts: 9286

Post by arbei »

1) In the Page Exporting function, is it possible to write in the code where the file should be saved before the dialog window opens?
You can use the Page_DataRendering Server Event to write more content before it's export to the file.

2) In Page Exported, is it possible that I do not know where the file is saved?
If the file saved automatically, it will saved the file to the folder defined as the default download location in your browser settings.


Post Reply