Make PDF by code with virtual pdf Printer in silent mode with .NET
up vote
0
down vote
favorite
I, in my application i create the invoice printing by PrintDocument, graphics etc, using only pure code(without any reporting tool or similar)
Now i am able to print to any printer i wont but I would like to be able to change the parameters of a virtual printer by code(setting of save windows, autosave, path and file name set). I do not care if the printer is pdfcreator or bullzip or cutepdf or anything else, I'm interested in an extract of code to work on.
Thanks for your help
Salvo
.net vb.net pdf printing
add a comment |
up vote
0
down vote
favorite
I, in my application i create the invoice printing by PrintDocument, graphics etc, using only pure code(without any reporting tool or similar)
Now i am able to print to any printer i wont but I would like to be able to change the parameters of a virtual printer by code(setting of save windows, autosave, path and file name set). I do not care if the printer is pdfcreator or bullzip or cutepdf or anything else, I'm interested in an extract of code to work on.
Thanks for your help
Salvo
.net vb.net pdf printing
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
I, in my application i create the invoice printing by PrintDocument, graphics etc, using only pure code(without any reporting tool or similar)
Now i am able to print to any printer i wont but I would like to be able to change the parameters of a virtual printer by code(setting of save windows, autosave, path and file name set). I do not care if the printer is pdfcreator or bullzip or cutepdf or anything else, I'm interested in an extract of code to work on.
Thanks for your help
Salvo
.net vb.net pdf printing
I, in my application i create the invoice printing by PrintDocument, graphics etc, using only pure code(without any reporting tool or similar)
Now i am able to print to any printer i wont but I would like to be able to change the parameters of a virtual printer by code(setting of save windows, autosave, path and file name set). I do not care if the printer is pdfcreator or bullzip or cutepdf or anything else, I'm interested in an extract of code to work on.
Thanks for your help
Salvo
.net vb.net pdf printing
.net vb.net pdf printing
asked Nov 8 at 10:57
Salvo
41
41
add a comment |
add a comment |
1 Answer
1
active
oldest
votes
up vote
1
down vote
To hide the dialog please look here
You can use properties from PrintDocument.PrinterSettings to send the output to a file:
PrintDocument.PrinterSettings.PrintFileName
PrintDocument.PrinterSettings.PrintToFile
I, my problem isn't to save to a file the output, i want to create a PDF with a Virtual PDF printer, setting his value from my SW code, hiding GUI of virtual PDF printer.
– Salvo
Nov 8 at 21:17
Is the name of the printer known? You can select a printer with PrintDocument.PrinterSettings.PrinterName
– seeseost
Nov 9 at 7:15
I thing my bad english not help me! When y call the printer(like bullzip or Pdf creator) appear the GUI of Virtual Printer, where user can set path for saving the PDF.I would like to set this path by code and Hide/notshow this one.
– Salvo
Nov 9 at 20:26
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
1
down vote
To hide the dialog please look here
You can use properties from PrintDocument.PrinterSettings to send the output to a file:
PrintDocument.PrinterSettings.PrintFileName
PrintDocument.PrinterSettings.PrintToFile
I, my problem isn't to save to a file the output, i want to create a PDF with a Virtual PDF printer, setting his value from my SW code, hiding GUI of virtual PDF printer.
– Salvo
Nov 8 at 21:17
Is the name of the printer known? You can select a printer with PrintDocument.PrinterSettings.PrinterName
– seeseost
Nov 9 at 7:15
I thing my bad english not help me! When y call the printer(like bullzip or Pdf creator) appear the GUI of Virtual Printer, where user can set path for saving the PDF.I would like to set this path by code and Hide/notshow this one.
– Salvo
Nov 9 at 20:26
add a comment |
up vote
1
down vote
To hide the dialog please look here
You can use properties from PrintDocument.PrinterSettings to send the output to a file:
PrintDocument.PrinterSettings.PrintFileName
PrintDocument.PrinterSettings.PrintToFile
I, my problem isn't to save to a file the output, i want to create a PDF with a Virtual PDF printer, setting his value from my SW code, hiding GUI of virtual PDF printer.
– Salvo
Nov 8 at 21:17
Is the name of the printer known? You can select a printer with PrintDocument.PrinterSettings.PrinterName
– seeseost
Nov 9 at 7:15
I thing my bad english not help me! When y call the printer(like bullzip or Pdf creator) appear the GUI of Virtual Printer, where user can set path for saving the PDF.I would like to set this path by code and Hide/notshow this one.
– Salvo
Nov 9 at 20:26
add a comment |
up vote
1
down vote
up vote
1
down vote
To hide the dialog please look here
You can use properties from PrintDocument.PrinterSettings to send the output to a file:
PrintDocument.PrinterSettings.PrintFileName
PrintDocument.PrinterSettings.PrintToFile
To hide the dialog please look here
You can use properties from PrintDocument.PrinterSettings to send the output to a file:
PrintDocument.PrinterSettings.PrintFileName
PrintDocument.PrinterSettings.PrintToFile
answered Nov 8 at 11:35
seeseost
1826
1826
I, my problem isn't to save to a file the output, i want to create a PDF with a Virtual PDF printer, setting his value from my SW code, hiding GUI of virtual PDF printer.
– Salvo
Nov 8 at 21:17
Is the name of the printer known? You can select a printer with PrintDocument.PrinterSettings.PrinterName
– seeseost
Nov 9 at 7:15
I thing my bad english not help me! When y call the printer(like bullzip or Pdf creator) appear the GUI of Virtual Printer, where user can set path for saving the PDF.I would like to set this path by code and Hide/notshow this one.
– Salvo
Nov 9 at 20:26
add a comment |
I, my problem isn't to save to a file the output, i want to create a PDF with a Virtual PDF printer, setting his value from my SW code, hiding GUI of virtual PDF printer.
– Salvo
Nov 8 at 21:17
Is the name of the printer known? You can select a printer with PrintDocument.PrinterSettings.PrinterName
– seeseost
Nov 9 at 7:15
I thing my bad english not help me! When y call the printer(like bullzip or Pdf creator) appear the GUI of Virtual Printer, where user can set path for saving the PDF.I would like to set this path by code and Hide/notshow this one.
– Salvo
Nov 9 at 20:26
I, my problem isn't to save to a file the output, i want to create a PDF with a Virtual PDF printer, setting his value from my SW code, hiding GUI of virtual PDF printer.
– Salvo
Nov 8 at 21:17
I, my problem isn't to save to a file the output, i want to create a PDF with a Virtual PDF printer, setting his value from my SW code, hiding GUI of virtual PDF printer.
– Salvo
Nov 8 at 21:17
Is the name of the printer known? You can select a printer with PrintDocument.PrinterSettings.PrinterName
– seeseost
Nov 9 at 7:15
Is the name of the printer known? You can select a printer with PrintDocument.PrinterSettings.PrinterName
– seeseost
Nov 9 at 7:15
I thing my bad english not help me! When y call the printer(like bullzip or Pdf creator) appear the GUI of Virtual Printer, where user can set path for saving the PDF.I would like to set this path by code and Hide/notshow this one.
– Salvo
Nov 9 at 20:26
I thing my bad english not help me! When y call the printer(like bullzip or Pdf creator) appear the GUI of Virtual Printer, where user can set path for saving the PDF.I would like to set this path by code and Hide/notshow this one.
– Salvo
Nov 9 at 20:26
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53206303%2fmake-pdf-by-code-with-virtual-pdf-printer-in-silent-mode-with-net%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown