Connecting Tech Pros Worldwide Help | Site Map

PrintDocument class in c#

enahar
Guest
 
Posts: n/a
#1: Nov 16 '05
How to print the list view control columns using PrintDocument class in
csharp dotnet framework

Thanks
Regards,
Ekta


Saso Zagoranski
Guest
 
Posts: n/a
#2: Nov 16 '05

re: PrintDocument class in c#


Take a look at:
http://www.ondotnet.com/pub/a/dotnet.../printing.html

saso

"enahar" <enahar@hotmail.com> wrote in message
news:uhlByfzDFHA.3504@TK2MSFTNGP12.phx.gbl...[color=blue]
> How to print the list view control columns using PrintDocument class in
> csharp dotnet framework
>
> Thanks
> Regards,
> Ekta
>[/color]


Sharon
Guest
 
Posts: n/a
#3: Nov 16 '05

re: PrintDocument class in c#


Hi Saso.
This example does not show how to print the contents of a control.
Regards.
Sharon.

"Saso Zagoranski" <saso.zagoranski@guest.arnes.si> wrote in message
news:cufars$266$1@planja.arnes.si...[color=blue]
> Take a look at:
> http://www.ondotnet.com/pub/a/dotnet.../printing.html
>
> saso
>
> "enahar" <enahar@hotmail.com> wrote in message
> news:uhlByfzDFHA.3504@TK2MSFTNGP12.phx.gbl...[color=green]
> > How to print the list view control columns using PrintDocument class in
> > csharp dotnet framework
> >
> > Thanks
> > Regards,
> > Ekta
> >[/color]
>
>[/color]


Saso Zagoranski
Guest
 
Posts: n/a
#4: Nov 16 '05

re: PrintDocument class in c#


It doesn't... But it does show how easy printing in .NET is.

I don't think there is a method like: ListView.Print() if you were looking
for that.

But If you know how to print in .NET then having two loops, looping through
the
rows and columns of the ListView should be very easy to do.

If you need this kind of functionality often I would probably create a
custom control:

public class MyListView : ListView
{
public void Print(Graphics g)
{ ... } // where "g" is the Graphics object from the
PrintDocument.Print eventhandler
}

But I may be wrong and there is an easier way...

saso

"Sharon" <talsharon@void.null> wrote in message
news:ucivFV3DFHA.2876@TK2MSFTNGP12.phx.gbl...[color=blue]
> Hi Saso.
> This example does not show how to print the contents of a control.
> Regards.
> Sharon.
>
> "Saso Zagoranski" <saso.zagoranski@guest.arnes.si> wrote in message
> news:cufars$266$1@planja.arnes.si...[color=green]
>> Take a look at:
>> http://www.ondotnet.com/pub/a/dotnet.../printing.html
>>
>> saso
>>
>> "enahar" <enahar@hotmail.com> wrote in message
>> news:uhlByfzDFHA.3504@TK2MSFTNGP12.phx.gbl...[color=darkred]
>> > How to print the list view control columns using PrintDocument class
>> > in
>> > csharp dotnet framework
>> >
>> > Thanks
>> > Regards,
>> > Ekta
>> >[/color]
>>
>>[/color]
>
>[/color]


Closed Thread