We have a VB.NET printer routine that we use from VB6 when printing from our application. I would like add to the Printer routine to print my pictures directly to the .NET Printer object.
After creating the .NET printer object I would like to define margins in twips, and plan to pass each picture in a project directly to the .NET printer object using a method similar to the VB6 PaintPicture method.
Parameters passed:
1) Picture - Object type (StdPicture)
2,3) x1, y1 - (Single) Left and Top of picture in Twips from left and Top Printer object Margins,
value in twips
4,5) w1, h1 - (Single) Destination Width and Height on Printer Object , value in twips
6,7) x2, y2 optional - (Single) Left and Top of location within source picture to start,
if missing then 0 is used, value in twips
8,9) w2, h2 optional - (Single) Width and Height of area within source picture to use
if missing then 0 is used, value in twips
10) To preserve transparency of images when printed on top of other graphics:
Rastor Constants OpCode for Rastor images Optional. Long value,
I use vbSrcAnd, vbSrcPaint, or vbSrcCopy
Of course, if you have a different method of printing a transparent image we are happy to use it
We can provide the current VB.Net print routine for you to work with.