all groups > vb.net upgrade > june 2004 >
You're in the

vb.net upgrade

group:

Printing in VB.Net


Printing in VB.Net balaji r via .NET 247
6/16/2004 10:41:06 PM
vb.net upgrade:
I am right now involved in a vb to vb.net migration. Can you help me in giving me hints/tips in converting statements like:
Printer.CurrentX = (Printer.ScaleWidth - Printer.TextWidth(strTmp) - LEFT_MARGIN - RIGHT_MARGIN) / 2) + LEFT_MARGIN

There are too many similar instances, where positions are calculated, where printing should happen. It will be of great help to me if anyone can throw some light on this. Thanks in advance. Awaiting an earliest response.

--------------------------------
From: balaji r

-----------------------
Posted by a user from .NET 247 (http://www.dotnet247.com/)

Re: Printing in VB.Net SStory
7/30/2004 11:57:32 PM
There is no printer object in .NET

I haven't done much with it but I know that printing is more akin to how it
was done in C++....

You must draw everything to the printer using the graphics object I think...
There are articles on this..

One by Rocky Lotka I think on MSDN.

shane

[quoted text, click to view]
where printing should happen. It will be of great help to me if anyone can
throw some light on this. Thanks in advance. Awaiting an earliest
response.
[quoted text, click to view]

AddThis Social Bookmark Button