im trying to split prints out by using
<STYLE>P { PAGE-BREAK-AFTER: always }</STYLE>
in the <HEAD> </HEAD> section
however its not page breaking like i would like - i want it to page break
after each datagrid (i have 4 on one page - formatted in a table) like :-
<TD><P><asp:datagrid id="DataGrid1" runat="server" Font-Names="Arial"
Visible="False" GridLines="None"
AutoGenerateColumns="False" Width="624px">
<HeaderStyle Font-Bold="True"></HeaderStyle>
<Columns>
<asp:BoundColumn DataField="ID" HeaderText="ID"></asp:BoundColumn>
<asp:BoundColumn DataField="Surname1"
HeaderText="Surname"></asp:BoundColumn>
<asp:BoundColumn DataField="field4" HeaderText="field4"
DataFormatString="{0:dd/MM/yyyy}"></asp:BoundColumn>
<asp:BoundColumn DataField="field5" HeaderText="field5"></asp:BoundColumn>
</Columns>
</asp:datagrid></TD></P>
thanks
mark 6 1683
can't break inside a table tag I dont believe.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"mark" <ma**@remove.com> wrote in message
news:_X*************@newsfe1-gui.server.ntli.net... im trying to split prints out by using
<STYLE>P { PAGE-BREAK-AFTER: always }</STYLE> in the <HEAD> </HEAD> section
however its not page breaking like i would like - i want it to page break after each datagrid (i have 4 on one page - formatted in a table) like :-
<TD><P><asp:datagrid id="DataGrid1" runat="server" Font-Names="Arial" Visible="False" GridLines="None" AutoGenerateColumns="False" Width="624px"> <HeaderStyle Font-Bold="True"></HeaderStyle> <Columns> <asp:BoundColumn DataField="ID" HeaderText="ID"></asp:BoundColumn> <asp:BoundColumn DataField="Surname1" HeaderText="Surname"></asp:BoundColumn> <asp:BoundColumn DataField="field4" HeaderText="field4" DataFormatString="{0:dd/MM/yyyy}"></asp:BoundColumn> <asp:BoundColumn DataField="field5"
HeaderText="field5"></asp:BoundColumn> </Columns> </asp:datagrid></TD></P>
thanks
mark
Use
<style type="text/css">
<!--
@Div Print { DIV.PAGEBREAK {page-break-before: always}}
-->
</style>
in <HEAD> tags
and
<DIV CLASS="PAGEBREAK"></DIV>
between each datagrid
Hope this helps
Regards,
Freddy
"mark" <ma**@remove.com> wrote in message
news:_X*************@newsfe1-gui.server.ntli.net... im trying to split prints out by using
<STYLE>P { PAGE-BREAK-AFTER: always }</STYLE> in the <HEAD> </HEAD> section
however its not page breaking like i would like - i want it to page break after each datagrid (i have 4 on one page - formatted in a table) like :-
<TD><P><asp:datagrid id="DataGrid1" runat="server" Font-Names="Arial" Visible="False" GridLines="None" AutoGenerateColumns="False" Width="624px"> <HeaderStyle Font-Bold="True"></HeaderStyle> <Columns> <asp:BoundColumn DataField="ID" HeaderText="ID"></asp:BoundColumn> <asp:BoundColumn DataField="Surname1" HeaderText="Surname"></asp:BoundColumn> <asp:BoundColumn DataField="field4" HeaderText="field4" DataFormatString="{0:dd/MM/yyyy}"></asp:BoundColumn> <asp:BoundColumn DataField="field5"
HeaderText="field5"></asp:BoundColumn> </Columns> </asp:datagrid></TD></P>
thanks
mark
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:%2****************@TK2MSFTNGP10.phx.gbl... can't break inside a table tag I dont believe.
-- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
i put them in a table to avoid overlaps
uh.....ok.....try putting each record in a table, not as a row in a table,
then see if they will page-break right. I'm betting they will.
--
Curt Christianson
Owner/Lead Developer, DF-Software
Site: http://www.Darkfalz.com
Blog: http://blog.Darkfalz.com
"mark" <ma**@remove.com> wrote in message
news:hZprc.106$h12.6@newsfe1-win... "Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message news:%2****************@TK2MSFTNGP10.phx.gbl... can't break inside a table tag I dont believe.
-- Curt Christianson Owner/Lead Developer, DF-Software Site: http://www.Darkfalz.com Blog: http://blog.Darkfalz.com
i put them in a table to avoid overlaps
"Freddy" <an********@NO.JUNK.MAIL> wrote in message
news:OV**************@TK2MSFTNGP10.phx.gbl... Use
<style type="text/css"> <!-- @Div Print { DIV.PAGEBREAK {page-break-before: always}} --> </style>
in <HEAD> tags
and
<DIV CLASS="PAGEBREAK"></DIV>
between each datagrid
Hope this helps
Regards,
Freddy
didnt seem to work - just ignores it for some reason
thanks
mark
"Curt_C [MVP]" <software_AT_darkfalz.com> wrote in message
news:eG****************@tk2msftngp13.phx.gbl... uh.....ok.....try putting each record in a table, not as a row in a table, then see if they will page-break right. I'm betting they will.
how would i do that ? - if i put each datagrid in its own table they overlap
each other.
mark This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: Jim H |
last post by:
We ahve a .NET web page that we dynamically create a bunch of DataGrids and
add them to a place holder. When the user hits submit we need to go through
all of the DataGrids to get some data. We...
|
by: Glenn Owens |
last post by:
I have an ASP.Net page on which there are serveral static controls
(listboxes, radiobuttonlist and textboxes). These controls are used to
create criteria from which the code-behind will dynamically...
|
by: mcgirk via .NET 247 |
last post by:
I am displaying a summary and groups of data all from one tablein a database.
First I display summary information (where categoryID = 0) in adatagrid. When it goes into the datagrid_itemdatabind,...
|
by: Erik K. Schindeldecker |
last post by:
Good Afternoon,
I am exporting a series of datagrids to Microsoft Word, and cannot figure
out how to force a page break between each datagrid. Does anyone know of a
character or command I could...
|
by: ryjfgjl |
last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
|
by: nemocccc |
last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
|
by: Hystou |
last post by:
There are some requirements for setting up RAID:
1. The motherboard and BIOS support RAID configuration.
2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
|
by: marktang |
last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
|
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...
|
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,...
|
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...
|
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...
|
by: agi2029 |
last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
| |