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

[185 byte] By [Mitch5713] at [2008-1-28]
# 1

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

JohnHart_MSFT at 2007-9-3 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 2

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 = False

BAKGRUND.PrintForm1.Print(UTSKRIFT, PowerPacks.Printing.PrintForm.PrintOption.ClientAreaOnly)

UTSKRIFT.Close()

What am I doing wrong?

David0001 at 2007-9-3 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 3
It's ok that is the class for do this, but when I assign draft property and then I just write PrintForm1.print() on the next line, it prints but with the default printer resolution (that is Medium) and it ignores the setting, what is wrong with this?
Nethol at 2007-9-3 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...
# 4

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.

JohnHart_MSFT at 2007-9-3 > top of Msdn Tech,Visual Basic,Visual Basic Power Packs...