customize repeater for printing

F

Fred

Hello,

datagrids have GridLines, BorderWidth, BorderColor, ItemStyle.CssClass,
ShowFooter ... properties, which can be used to customize the way they
look when printed, how does one achieve the same effect for repeaters

(this r a few simple pages, i dont wanna use Crystal Reports or anything
like that)

TIA
 
K

Kevin Spencer

If you want all that, why not use a DataGrid?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 
F

Fred

becouse it`s a lot of ready code, using repeaters, and i need to format
it for printing
 
K

Kevin Spencer

I'm confused. You want to format the code, but you don't want to change it?

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 
K

Kevin Spencer

Okay, let me see if I can figure this out. You have a number of records that
you want to format for printing using CSS page breaks. So far so good?
You're using a Repeater Control to loop through a record set of some sort,
and put each record in HTML in the page, followed by a CSS page break. Am I
following you so far?

Now, you asked about using a DataGrid. Your exact question was:

datagrids have GridLines, BorderWidth, BorderColor, ItemStyle.CssClass,
ShowFooter ... properties, which can be used to customize the way they
look when printed, how does one achieve the same effect for repeaters

Well, since a Repeater repeats whatever HTML you render inside it, and since
a DataGrid ultimately renders HTML, it shouldn't really matter what you use;
only what HTML it renders, right? So, if you don't want to use a DataGrid,
just modify the HTML output inside the Repeater accordingly.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
You can lead a fish to a bicycle,
but it takes a very long time,
and the bicycle has to *want* to change.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,019
Latest member
RoxannaSta

Latest Threads

Top