473,729 Members | 2,340 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

customize repeater for printing

Hello,

datagrids have GridLines, BorderWidth, BorderColor, ItemStyle.CssCl ass,
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 2787
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******** ********@TK2MSF TNGP15.phx.gbl. ..
Hello,

datagrids have GridLines, BorderWidth, BorderColor, ItemStyle.CssCl ass,
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******** **********@TK2M SFTNGP15.phx.gb l...
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.CssCl ass,
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******** **********@TK2M SFTNGP15.phx.gb l...
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
5237
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 please)
3
2862
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 creating elements on the fly dynamically. I have a control that needs to display 3 columns and n number of rows depending on number of records. Sounds simple. But each Row has a control with its own data source binding and value must be selected...
0
1042
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 style="WIDTH: 59px; HEIGHT: 57px"> <asp:CheckBox id="CheckBox1" runat="server"></asp:CheckBox></TD> <TD style="HEIGHT: 57px"><IMG style="WIDTH: 136px; HEIGHT: 30px" height="30" alt="" src="" width="136"></TD>
4
1147
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 inside a asp:label. It didn't worked. Can I use DataList ou Repeater with a fixed number os repetitions, not based on DataSet or DataTable? Thankz, André
1
1555
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 Header</td> </tr> <tr><td bgcolor="gray">SubHead1</td><td bgcolor="gray">Subhead2 -
0
1013
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 : <%@ Register TagPrefix="TAG" TagName="MyUserControl" Src="~/ascx/myUC.ascx" %> <TAG:MyUserControl runat="server"> <Header>
8
16612
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 the repeater. When clicked, it is supposed to
2
1699
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 linkbuttons to handle when they are clicked within server code. I can find no examples of this. Any examples? Thanks
4
15464
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
8763
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9427
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
9284
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9148
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
6722
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6022
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4528
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
0
4796
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3238
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system

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.