Re: Can OnPrint output be saved to a file?

From: Charles C. (binstar_at_aei.ca)
Date: 04/06/04


Date: Tue, 6 Apr 2004 16:19:29 -0400

I have tried with HP LaserJet Series II and with Lexmark Z52 as printers.
Both produce garbage.

Thanks.

"Jonathan Wood" <jwood@softcircuits.com> wrote in message
news:%23awC%23oAHEHA.3536@TK2MSFTNGP12.phx.gbl...
> Are you using the same printer for both tests?
>
> --
> Jonathan Wood
> SoftCircuits
> http://www.softcircuits.com
> Available for consulting: http://www.softcircuits.com/jwood/resume.htm
>
> "Charles C." <binstar@aei.ca> wrote in message
> news:u145Ri$GEHA.3032@TK2MSFTNGP09.phx.gbl...
> > Yes I have tried it several times. I select the Print to file option in
> the
> > print dialog and print. When printing to the printer there are no
problems
> > but printing to file gives me garbage.
> >
> > Thanks.
> >
> > "Jonathan Wood" <jwood@softcircuits.com> wrote in message
> > news:uTO4gW$GEHA.3032@TK2MSFTNGP09.phx.gbl...
> > > This is not correct. Did you try it? A prn file contains all the
> > formatting
> > > and other information that would otherwise be sent to the printer. It
> > should
> > > do everything that you are asking for.
> > >
> > > --
> > > Jonathan Wood
> > > SoftCircuits
> > > http://www.softcircuits.com
> > > Available for consulting: http://www.softcircuits.com/jwood/resume.htm
> > >
> > > "Charles C." <binstar@aei.ca> wrote in message
> > > news:u1C3Q$8GEHA.3164@TK2MSFTNGP11.phx.gbl...
> > > > Print to file outputs to a .prn type text file and so I just get
alot
> of
> > > > junk. I would need to preserve the fonts, rectangles and brushes
and
> be
> > > > able to view the file also. If there is a way to do this with Print
> to
> > > file
> > > > please let me know.
> > > >
> > > > Thanks.
> > > >
> > > > "Jonathan Wood" <jwood@softcircuits.com> wrote in message
> > > > news:Op3W7H3GEHA.704@tk2msftngp13.phx.gbl...
> > > > > How about using standard OnPrint code and mess with the Print to
> file
> > > > option
> > > > > in the Print dialog box?
> > > > >
> > > > > --
> > > > > Jonathan Wood
> > > > > SoftCircuits
> > > > > http://www.softcircuits.com
> > > > > Available for consulting:
> http://www.softcircuits.com/jwood/resume.htm
> > > > >
> > > > > "Charles C." <binstar@aei.ca> wrote in message
> > > > > news:%23m9f8B3GEHA.3940@tk2msftngp13.phx.gbl...
> > > > > > Can OnPrint output (icluding fonts,rectangles,brushes...) be
saved
> > to
> > > a
> > > > > > file?
> > > > > > I am currently writing output in rtf file format for this
purpose
> > and
> > > it
> > > > > is
> > > > > > more time consuming then producing a report via OnPrint.
> > > > > >
> > > > > > Thanks.
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>



Relevant Pages

  • kernel-image-2.6.8-2-k7, and parallel port printing
    ... printer, and try as I might, I could only get garbage out. ... Any hints on what hoops I have to jump through to get printing to ... cooperate again with 2.6.8-2-k7 very much appreciated? ...
    (Debian-User)
  • Re: PerfFormattedData?
    ... "PercentRegistryQuotaInUse" (which needs cooking) and printing (%I32u) ... >contains garbage. ...
    (microsoft.public.win32.programmer.wmi)
  • Re: question on fread()
    ... > hi here is my test code ... > why and how that garbage output is coming? ... characters those bytes represent in your character set. ... printing instead of "%d". ...
    (comp.lang.c)
  • Windows.Forms equired for printing?
    ... It seems a reference to System.Windows.Forms is required for printing ... I tried printing in a console app w/o a rference to it and ... got garbage. ... Added the reference and it works now. ...
    (microsoft.public.dotnet.languages.csharp)