Re: printing example needed

Tech-Archive recommends: Speed Up your PC by fixing your registry



I agree with you... using printdocument is a nightmare. But I think it is
still the way to go for me. I believe I've just about got it worked out
using straight text and fonts... It seemed to me that I might have had a
short-cut in the RTB -- but it was just another one of those blind-alley
things :)

Too bad there is no simple way to render RichText from the RT-Box control to
the windows printer. Failing to provide methods for writing RT to a printer
sort of defeats the purpose of having an RT control.

"Bryan Phillips" <bphillips@xxxxxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:%23wQ9joqlHHA.4628@xxxxxxxxxxxxxxxxxxxxxxx
Have you looked into using Reporting Services (client-side only) to
print your invoice? Printing using the PrintDocument class is a
nightmare.

--
Bryan Phillips
MCT, MCSD, MCDBA, MCSE
Blog: http://bphillips76.spaces.live.com
Web Site: http://www.composablesystems.net



"Bill Angus" <mdangus@xxxxxxxxxxxxxxxxxxxx> wrote in message
news:erR04NplHHA.4960@xxxxxxxxxxxxxxxxxxxx:

Hi:

Does anybody know of a good VB.net example to demonstrate printing --
hopefully online somewhere? I want my app to print-out an invoice. The
invoice could be multiple pages in length. It would have a
business-address
header on the first page (from an RTF box in app setup? ), plus a
bill-to
and ship-to address (in a rectangular box), followed by a table of
items,
(each row in the table would have qty, description, unitprice, extended
price and so forth). I would like to put a document footer on each page
(another user-swetting taken from an RTF box on a setup form in the
application). Plus at the end of the job, I would like to print summary
information (totals, balance owing, etc).

Looking around so far, it seems that printing RTF may not be as easy as
I
first thought it would be.

Any direction that anyone can provide would be greatly appreciated. Have
a
great day!

Bill Angus
http://www.psychtest.com



.



Relevant Pages

  • Re: Using a novell shared printer from debian.
    ... Clive Menzies wrote: ... Okay, I'm finished with my rant, except to say that printing ... I am painfully going through the same nightmare here and after calming ...
    (Debian-User)
  • Printing Question
    ... So far I've been using the "regular" way of printing with PrintDocument, ... maintaining the X and Y positions, drawing rectangles, lines, strings of ... PrintDocument? ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Problems with PrintPreview Control
    ... This sounds like you don't have any logic in your PrintDocument to reset ... the stream position at the start of printing. ... > I am having problems with PrintPreview Control could use some advice. ...
    (microsoft.public.dotnet.framework.windowsforms)
  • Re: Print preview prints blank page
    ... The print button just calls Print again on the PrintDocument. ... to manage your datastream for the printing calls such that this resets the ... data stream position to the start of your data. ... Can i set the print icon in the printpreviewdialog to go to ...
    (microsoft.public.dotnet.languages.vb)
  • Avoiding Gdi32 call to StartPage / EndPage
    ... I'm trying to use the PrintDocument & PrintController objects to print ... As part of the process of printing this particular document ... and EndPage before returning control to me. ...
    (microsoft.public.dotnet.framework.drawing)