We have an old VSPrinter control from Component One in our VB6 programs.

The VSPrinter control allowed our VB6 apps to generate nice looking forms
and display data to our users in a "print preview" window.

We want to do something similar with Visual Studio, but I can't find how to
manually write graphical information to a PrintPreview object.

Where could I find this information? I do not want to use Crystal Reports or
Report Viewer.

RE: VSPrinter Alternative? by JoeMonnin

JoeMonnin
Mon Apr 28 14:34:10 CDT 2008

You just use GDI+ to write to the Graphics object of the PrintDocument class.
Here's an article from MSDN that explains it in detail:
http://msdn2.microsoft.com/en-us/magazine/cc188767.aspx

"jp2msft" wrote:

> We have an old VSPrinter control from Component One in our VB6 programs.
>
> The VSPrinter control allowed our VB6 apps to generate nice looking forms
> and display data to our users in a "print preview" window.
>
> We want to do something similar with Visual Studio, but I can't find how to
> manually write graphical information to a PrintPreview object.
>
> Where could I find this information? I do not want to use Crystal Reports or
> Report Viewer.

RE: VSPrinter Alternative? by jp2msft

jp2msft
Mon Apr 28 17:22:00 CDT 2008

Thanks! I've been looking for something like that! It is perfect.

"Joe Monnin" wrote:

> You just use GDI+ to write to the Graphics object of the PrintDocument class.
> Here's an article from MSDN that explains it in detail:
> http://msdn2.microsoft.com/en-us/magazine/cc188767.aspx
>
> "jp2msft" wrote:
>
> > We have an old VSPrinter control from Component One in our VB6 programs.
> >
> > The VSPrinter control allowed our VB6 apps to generate nice looking forms
> > and display data to our users in a "print preview" window.
> >
> > We want to do something similar with Visual Studio, but I can't find how to
> > manually write graphical information to a PrintPreview object.
> >
> > Where could I find this information? I do not want to use Crystal Reports or
> > Report Viewer.