Page 1 of 1

Generating PDF files without the Save As dialog

Posted: Wed Apr 14, 2010 8:12 am
by Claudiu (Softland)
In order to generate your PDF files without using the save as dialog in the process, you need to set the folder and the file programmatically. Examples and other considerations on how to do this are available here: http://www.novapdf.com/kb/novapdf-sdk-h ... g-139.html

Re: Generating PDF files without the Save As dialog

Posted: Wed Jun 30, 2010 7:26 pm
by J T
Hi,
I am experimenting with NovaPDF and this is something we are considering buying to use in our application. I looked at the C# sample that is provided int he above link, 'Save As' dialog still comes up. this is what I did
1. Add reference to interop.novaapilib.dll
2. Added the Globals.cs to my project
3. object declaration in the main class private NovaPdfOptionsClass mobjNovaOptios;
3. code in form load
mobjNovaOptios = new NovaPdfOptionsClass();
mobjNovaOptios.Initialize(PRINTER_NAME, "", "", "");
4. Code in Print_Click
mobjNovaOptios.SetOptionLong2(NovaOptions.NOVAPDF_SAVE_PROMPT, 0, SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC);
// set generated PDF file destination folder "c:\"
mobjNovaOptios.SetOptionString2(NovaOptions.NOVAPDF_SAVE_FOLDER, "c:\\", SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC);
mobjNovaOptios.SetOptionString2(NovaOptions.NOVAPDF_SAVE_FILE, "sample_nova.pdf", SMALL_SIZE_PROFILE, PROFILE_IS_PUBLIC);

my_viewer.Print() //this is our viewer and this function works.

So, PDF is created but 'Save As' dialog from Nova is still shown.
I am using evaluation version of SDK and novaPDF with SDK 7 printer.

Please let me know what i might be missing. This is very critical to my project.
Thanks and appreciate your help.

Re: Generating PDF files without the Save As dialog

Posted: Fri Jul 02, 2010 8:50 am
by Claudiu (Softland)
Hello,

You have also sent an e-mail to our support department. It will be attended.

Re: Generating PDF files without the Save As dialog

Posted: Wed Sep 15, 2010 3:35 am
by pdfuser
Hi,

I am experimenting with NovaPDF and this is something we are considering buying to use in our application. I looked at the C# sample that is provided in the above link, 'Save As' dialog still comes up. Please let me how can it be hidden. I want to convert the file to pdf internally without user interaction.

Also i am looking specific example for infopath to pdf conversion. please help with useful sample for the same.

Thanks

Re: Generating PDF files without the Save As dialog

Posted: Wed Sep 15, 2010 7:16 am
by Claudiu (Softland)
Hello,

Please access the following link to view how to hide the Save As dialog programmatically: http://www.novapdf.com/kb/novapdf-sdk-h ... g-139.html

For the infopath to PDF conversion, i am afraid we do not have an example script for the same. These are all the samples available: http://www.novapdf.com/en/samples-sdk.html

Thank you.

Re: Generating PDF files without the Save As dialog

Posted: Wed Sep 15, 2010 2:37 pm
by pdfuser
Thanks. I am able to hide the "Save As" dialog but moving further i want to generate PDF file without even "Print" dialog.
i want to automate the process of generating PDF file from infopath in the background by giving source file in the code.

Thanks

Re: Generating PDF files without the Save As dialog

Posted: Thu Sep 16, 2010 7:45 am
by Claudiu (Softland)
Hello,

novaPDF does not have other Print related dialogs except the Save as one.
So the Print you are getting now is from either the Infopath application or a 3rd party program you are using with it.
So i am afraid we cannot assist you on this issue as we do not offer support for 3rd party applications.

Thank you.