GDI+ print to file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • steve

    GDI+ print to file


    When I print to a file using C# print what format is the file written out in?

    I am debugging a print routine and don't want to do the actual print but would like to open the output file in something like
    Photoshop. What file extension should I use so that I can see the output.

    Sorry if this is a stupid question. I tried bmp format but Photoshop at least doesn't recognize the file

    Thanks,

    Steve
  • Peter Duniho

    #2
    Re: GDI+ print to file

    On Wed, 16 Jul 2008 15:53:07 -0700, steve <s_j_bull@yahoo .comwrote:
    >
    When I print to a file using C# print what format is the file written
    out in?
    It's specific to the driver. What driver are you using?
    I am debugging a print routine and don't want to do the actual print but
    would like to open the output file in something like
    Photoshop. What file extension should I use so that I can see the output.
    If you want to open the output in Photoshop, you'll want to use a PDF
    driver or maybe something like Office's Document Imaging driver (which
    outputs TIFF).

    Pete

    Comment

    • steve

      #3
      Re: GDI+ print to file


      my printer is a Canon IP100. The properties page doesn't indicate what format it prints out in.

      I don't really care what format it writes out in as this is only a temporary debug measure. I just need to know how I can do the
      print so that I can view it in some application.


      Thanks,
      Steve



      On Wed, 16 Jul 2008 16:04:17 -0700, "Peter Duniho" <NpOeStPeAdM@nn owslpianmk.comw rote:
      >On Wed, 16 Jul 2008 15:53:07 -0700, steve <s_j_bull@yahoo .comwrote:
      >
      >>
      >When I print to a file using C# print what format is the file written
      >out in?
      >
      >It's specific to the driver. What driver are you using?
      >
      >I am debugging a print routine and don't want to do the actual print but
      >would like to open the output file in something like
      >Photoshop. What file extension should I use so that I can see the output.
      >
      >If you want to open the output in Photoshop, you'll want to use a PDF
      >driver or maybe something like Office's Document Imaging driver (which
      >outputs TIFF).
      >
      >Pete

      Comment

      • Peter Duniho

        #4
        Re: GDI+ print to file

        On Wed, 16 Jul 2008 16:14:32 -0700, steve <s_j_bull@yahoo .comwrote:
        my printer is a Canon IP100. The properties page doesn't indicate what
        format it prints out in.
        Probably Canon's own proprietary format. I'm not familiar enough with
        that printer to know for sure.
        I don't really care what format it writes out in as this is only a
        temporary debug measure. I just need to know how I can do the
        print so that I can view it in some application.
        Well, if you have a recent version of Office (released this century, for
        example), you likely have a printer driver installed that outputs to an
        image format. "Document Imaging" will write TIFF, while the newer XPS
        driver writes Microsoft's XPS format of course. If you don't already have
        such a driver (e.g. you don't have Office installed), there are other
        options. For PDF, there are a number of options. Googling "pdf printer
        driver" turned this one up as an early hit:
        Download PDFCreator for free. Converts every printable document to PDF, JPG, PNG, TIF and more. PDFCreator creates professional PDFs with just a few clicks and it's free. PDFCreator comes with many professional features to merge documents, send emails, and more.


        Google can help you find other possibilities if the above doesn't help
        enough. At the very least, you can get any random driver that supports
        print preview (for example, Epson's printer drivers mostly do, at least
        the recent ones). You don't need the printer itself; just install the
        driver, configure it to print to a file (so that it won't try to find a
        printer) and then use the built-in print-preview functionality of the
        driver to view your output.

        Basically, it's not really a language/framework thing. It just depends on
        what driver you are using. However, there are lots of possibilities.
        Hopefully something in this post leads you to a useful answer. :)

        Pete

        Comment

        • steve

          #5
          Re: GDI+ print to file


          I found a Send to One Note driver which was installed by MS Office OneNote which works really well.

          Thanks

          Steve



          On Wed, 16 Jul 2008 16:29:28 -0700, "Peter Duniho" <NpOeStPeAdM@nn owslpianmk.comw rote:
          >On Wed, 16 Jul 2008 16:14:32 -0700, steve <s_j_bull@yahoo .comwrote:
          >
          >my printer is a Canon IP100. The properties page doesn't indicate what
          >format it prints out in.
          >
          >Probably Canon's own proprietary format. I'm not familiar enough with
          >that printer to know for sure.
          >
          >I don't really care what format it writes out in as this is only a
          >temporary debug measure. I just need to know how I can do the
          >print so that I can view it in some application.
          >
          >Well, if you have a recent version of Office (released this century, for
          >example), you likely have a printer driver installed that outputs to an
          >image format. "Document Imaging" will write TIFF, while the newer XPS
          >driver writes Microsoft's XPS format of course. If you don't already have
          >such a driver (e.g. you don't have Office installed), there are other
          >options. For PDF, there are a number of options. Googling "pdf printer
          >driver" turned this one up as an early hit:
          >http://sourceforge.net/projects/pdfcreator/
          >
          >Google can help you find other possibilities if the above doesn't help
          >enough. At the very least, you can get any random driver that supports
          >print preview (for example, Epson's printer drivers mostly do, at least
          >the recent ones). You don't need the printer itself; just install the
          >driver, configure it to print to a file (so that it won't try to find a
          >printer) and then use the built-in print-preview functionality of the
          >driver to view your output.
          >
          >Basically, it's not really a language/framework thing. It just depends on
          >what driver you are using. However, there are lots of possibilities.
          >Hopefully something in this post leads you to a useful answer. :)
          >
          >Pete

          Comment

          Working...