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










share|improve this question


























    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










    share|improve this question
























      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










      share|improve this question













      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






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 8 at 10:57









      Salvo

      41




      41
























          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






          share|improve this answer





















          • 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











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














           

          draft saved


          draft discarded


















          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

























          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






          share|improve this answer





















          • 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















          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






          share|improve this answer





















          • 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













          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






          share|improve this answer












          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







          share|improve this answer












          share|improve this answer



          share|improve this answer










          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


















          • 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


















           

          draft saved


          draft discarded



















































           


          draft saved


          draft discarded














          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





















































          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







          Popular posts from this blog

          Schultheiß

          Liste der Kulturdenkmale in Wilsdruff

          Android Play Services Check