Printing a .dat file

Collapse
This topic is closed.
X
X
 
  • Time
  • Show
Clear All
new posts
  • baconbits420@gmail.com

    Printing a .dat file

    i have created a .dat file using a streamwriter and am having troubles
    recalling the file for printing to a receipt. I know to use a
    printDialog and a PrintDocument, but how do i set the printDocument to
    the document i want?

    Any insight would help

  • Herfried K. Wagner [MVP]

    #2
    Re: Printing a .dat file

    <baconbits420@g mail.com> schrieb:[color=blue]
    >i have created a .dat file using a streamwriter and am having troubles
    > recalling the file for printing to a receipt. I know to use a
    > printDialog and a PrintDocument, but how do i set the printDocument to
    > the document i want?[/color]

    What data does the DAT file contain? You'll have to handle the print
    document's 'PrintPage' event, draw the data to be printed onto the page
    there ('e.Graphics.Dr awString', 'e.HasMorePages ') and start printing by
    calling the print document's 'Print' method.

    --
    M S Herfried K. Wagner
    M V P <URL:http://dotnet.mvps.org/>
    V B <URL:http://classicvb.org/petition/>

    Comment

    • baconbits420@gmail.com

      #3
      Re: Printing a .dat file

      Thanks for the help. I was able to take what you said and find other
      examples. Thanks

      Comment

      Working...