Board index » delphi » Q: Easier printing on printer.canvas regardless of printer type
Com...@lottery.powernet.co.uk (Matthew)
![]() Delphi Developer |
Thu, 16 Sep 1999 03:00:00 GMT
|
Com...@lottery.powernet.co.uk (Matthew)
![]() Delphi Developer |
Thu, 16 Sep 1999 03:00:00 GMT
Q: Easier printing on printer.canvas regardless of printer typeI want to divide the printpage into standard rows and columns, as you The user might have a dot-matrix, laser or inkjet printer attached, so Report Smith is much too complicated for my simple purpose, I would I want to design a simple user function which translates as: At Row, I have never done this under Windows, I'd appreciate any tips. Email appreciated. I respond to every email. |
Vjekoslav Babi
![]() Delphi Developer |
Thu, 16 Sep 1999 03:00:00 GMT
Re:Q: Easier printing on printer.canvas regardless of printer typeMatthew <Com...@lottery.powernet.co.uk > wrote in article Quote> I want to divide the printpage into standard rows and columns, as you of your printer (ie dots per row/column). Then the task is easy, there remains no philosophy, only mathematics. You divide dots per column/row with number of characters you wish to appear in certain row/column and get the constant that should multiply with character position of each character in your text. This is theory, right now I have no time to write out on example, but I will send the example to you if you wish. Quote> I also need a command that will do a page eject regardless of printer know how, I'll send you some example. Quote> I have never done this under Windows, I'd appreciate any tips. I'll send it to you. But remeber, first try making it yourself by trying this, you'll feel much better when you achieve the result yourself, than if I helped you. But I'm here to help! Best regards! -- alv...@urgentmail.com |
Ove Kjeldgaa
![]() Delphi Developer |
Thu, 16 Sep 1999 03:00:00 GMT
Re:Q: Easier printing on printer.canvas regardless of printer typeQuoteCom...@lottery.powernet.co.uk (Matthew) wrote: I have some code in different applications that prints label-sheet, If you dont find any other hints, then mail me whith a litle more --------------------------------------------- |
Frank Hey
![]() Delphi Developer |
Sat, 18 Sep 1999 03:00:00 GMT
Re:Q: Easier printing on printer.canvas regardless of printer typeIn article <01bc3d26$009a6020$9be21dc3@default> Quote"Vjekoslav Babi?" <alv...@urgentmail.com> wrote: I have to print graphics, too. I think it is a bad idea to write a draw procedure which draws the graphics in dependance from the printer resolution. So I paint the graphis to a PaintBox and do a copyrect from paintbox.canvas to printer.canvas. So far my method works great for dot-matrix printers. But it does not at all work for laser or inkjet printers - the copyrect does nothing, the area of the graphics is empty. To check this out, create a form with only a button and a paintbox. procedure TForm1.Button1Click(Sender: TObject); If I set the standard printer to a dot-matrix, both lines of text get printed. Is there anybody with any ideas why it works only with some printers? Frank Heyne |
Joe C. Hech
![]() Delphi Developer |
Sat, 18 Sep 1999 03:00:00 GMT
Re:Q: Easier printing on printer.canvas regardless of printer typeQuoteFrank Heyne wrote: StretchDiBits(). An example can be found at our web site. ou need technical document: Ti3155 - A Better Way To Print a Form Joe |
1. printing multiple bmps to a printer canvas (using printbitmap) prints out B+W
2. Laser Printer will not work with printer.canvas
3. printer.canvas.textheight and printer resolution
4. Use printer.canvas without printer.beginDoc ?
5. Where to drawlines on Printer.Handle or Printer.Canvas.Handle
6. Printer()->Canvas not updated when printer is changed
7. printer.abort leaves printer.printing TRUE??????
8. Printer.Printing after Printer.Abort problem
9. Q: Strings and Printers and Such (Problems printing directly to printer)