PrintForm and DPI
Using printform power pack is there any way to print using the highest resolution of the printer ? or are we still stuck at the old 96DPI?
Example please thanks
Mitch
Using printform power pack is there any way to print using the highest resolution of the printer ? or are we still stuck at the old 96DPI?
Example please thanks
Mitch
Hi Mitch,
The PrintForm component actually just uses a PrintDocument to perform the actual printing so you can control the resolution just as you would with a standard PrintDocument via the PrintSettings.DefaultPageSettings.PrinterResolution.Kind.
For example:
PrintForm1.PrinterSettings.DefaultPageSettings.PrinterResolution.Kind = Printing.PrinterResolutionKind.Draft
See the following page for more information: http://msdn2.microsoft.com/en-us/library/system.drawing.printing.printerresolutionkind.aspx
Hi
I have upgraded my Visual Basic 6 application to .NET. In VB6 i used a black and white hidden form including textboxes, labels and frames together with VB6 printform for printing. The result was perfect and always as expected. Now in .NET I tried to use the new PrintForm utility but when I print to a black and white laser printer I get unsharp prints with very low resolution. It also seems to be printed in greyscale and not in black and white although everything on the printed form is in black text on white background. I have used the following code:
UTSKRIFT.Show()
BAKGRUND.PrintForm1.PrinterSettings.DefaultPageSettings.PrinterResolution.Kind = Printing.PrinterResolutionKind.High
BAKGRUND.PrintForm1.PrinterSettings.DefaultPageSettings.Color =
FalseBAKGRUND.PrintForm1.Print(UTSKRIFT, PowerPacks.Printing.PrintForm.PrintOption.ClientAreaOnly)
UTSKRIFT.Close()What am I doing wrong?
This version of the PrintForm component is actually doing a screen capture at the screen resolution not at the printers resolution. Unfortunetly at this time there is not way to change this.
Sorry I don't have a better answer.