Re: Text and Graphics to Dot Matrix Printer???
From: Mike D Sutton _at_ Work (_at_)
Date: 02/24/04
- Next message: Ian Cowley: "Corrupted GIF files and pictureboxes"
- Previous message: Ian Cowley: "Re: Loading 100 GIF files quickly...?"
- In reply to: carlos: "Text and Graphics to Dot Matrix Printer???"
- Next in thread: Carlos: "Re: Text and Graphics to Dot Matrix Printer???"
- Reply: Carlos: "Re: Text and Graphics to Dot Matrix Printer???"
- Messages sorted by: [ date ] [ thread ]
Date: Tue, 24 Feb 2004 14:43:18 -0000
> I need to print to a Dot Matrix Printer (panasonic Kx-P1150) some text and a
> barcode (image into a picture box).
>
> The way I tried is using Win32 API to print the raw text and then switch to graphics using
> windows printer driver. I would like to print the barcode which is an image into picture
> box using the same API calls and avoid the use of Visual Basic Printer object.
>
> The problem I have with the printer object is that once you send a "Printer.EndDoc"
> the printer will issue a form feed command. Are there any suggestions?
Presumably when you're drawing the text to the printer, you're using something like TextOut() or DrawText() to draw it to the
printer's device context? If so then you can simply use the BitBlt() or StretchBlt() API call's to draw your picture from the
picture box in VB onto the printer's device context. If that's no help then you may wish to re-post to a GDI group such as
microsoft.public.win32.programmer.gdi where you'll get more assistance on the printing side of things using the GDI API.
Hope this helps,
Mike
- Microsoft Visual Basic MVP -
E-Mail: EDais@mvps.org
WWW: http://www.mvps.org/EDais/
- Next message: Ian Cowley: "Corrupted GIF files and pictureboxes"
- Previous message: Ian Cowley: "Re: Loading 100 GIF files quickly...?"
- In reply to: carlos: "Text and Graphics to Dot Matrix Printer???"
- Next in thread: Carlos: "Re: Text and Graphics to Dot Matrix Printer???"
- Reply: Carlos: "Re: Text and Graphics to Dot Matrix Printer???"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|