473,327 Members | 2,090 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,327 software developers and data experts.

customize repeater for printing

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
Jan 3 '06 #1
4 2766
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.

"Fred" <fr**@ilovespam.com> wrote in message
news:%2****************@TK2MSFTNGP15.phx.gbl...
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

Jan 3 '06 #2
becouse it`s a lot of ready code, using repeaters, and i need to format
it for printing

Kevin Spencer wrote:
If you want all that, why not use a DataGrid?

Jan 3 '06 #3
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.

"Fred" <fr**@ilovespam.com> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
becouse it`s a lot of ready code, using repeaters, and i need to format it
for printing

Kevin Spencer wrote:
If you want all that, why not use a DataGrid?

Jan 3 '06 #4
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.

"Fred" <fr**@ilovespam.com> wrote in message
news:%2******************@TK2MSFTNGP15.phx.gbl...
becouse it`s a lot of ready code, using repeaters, and i need to format it
for printing

Kevin Spencer wrote:
If you want all that, why not use a DataGrid?

Jan 3 '06 #5

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Sandy | last post by:
I have a repeater which shows Group names. (Skip this part if you want rather irrelevant) The groups are ordered and formatted: Parent ---Child ------Grand Child (okay start reading again...
3
by: WebMatrix | last post by:
I am struggling with implementing somewhat complicated UI web-control. I explored Repeater, but I am not sure if it's the best way to go. I am leaning towards writing my own custom control and...
0
by: Raed Sawalha | last post by:
I have a table inside repeater like following: <asp:Repeater id="Repeater1" runat="server"> <ItemTemplate> <TABLE id="Table3" cellSpacing="1" cellPadding="1" width="300" border="1"> <TR> <TD...
4
by: André Nobre | last post by:
Hi all... I need to put 20 textbox in an aspx, but I don't want to put it manually. How can I code a Sub to do that? Something like a For. I tried using a For and puting the asp:textbox code...
1
by: JD | last post by:
Hello Everyone, I am trying to do a page where when the user gets to the page it will look very similar to the following: <table border=1> <tr> <td bgcolor="green" colspan="2">Main...
0
by: Mitkip | last post by:
Does someone know how can I make a user control which allow me to customize it like a datagrid or a repeater ... For example, I would like to call my control in an aspx page like this : <%@...
8
by: Alan Silver | last post by:
Hello, I have a repeater that has code like this... <ItemTemplate> <asp:CheckBox ID="chkDelete" Text="" RunAt="server"/> .... other stuff goes here </ItemTemplate> There is a button below...
2
by: Lloyd Sheen | last post by:
I have a repeater that will have linkbuttons. I have googled much but cannot find a solution to the following. Since the items are dynamic I need to be able to attach handlers to the...
4
by: Michael | last post by:
I have a repeater web control. Currently I want to change some row's color based on defined condition. Is there any code sample demonstrating how to accomplish it? Thanks.
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.