473,323 Members | 1,574 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,323 software developers and data experts.

Printing one item of a DataList?

I have some hierarchical data bound to a series of nested DataLists and
DataGrids for which I'd like to be able to provide the end-user some
targeted printing capabilities. By that I mean being able to send just one
parent dataitem and all its children to the printer. Does anyone have any
good suggestions for how to do this or where to look for ideas about how to
accomplish it?

Thanks
Nov 18 '05 #1
2 2279
Hi Allen,

Thank you for using Microsoft NewsGroup Service. Based on your description,
you've some asp.net web pages which contains Some Data Reports. The reports
consist of DataList which also has several DataGrid in each RowTemplate.
Since when printing the report, you want to let the customer specify one of
the DataGrid in DataList to be printed? Please correct me if my
understanding of your problem is not quite correct.
Generally, in a web page, if the client side want to print a page, it'll
cause the whole page to be printed out. The print operation is page based.
As for your situation, you want part of a page or part of a WebControl's
Items to be printed out. Would you consider the following suggestion:

1.If the DataItems(Those Grids in the DataList) 's structure is not very
complex, you may try hidden the other Items, Grids the customer want to
print a certain one of them. Many Serverside controls can set its display
status via seting the "Visible" property.

2.If the page structure is so complex that not convenient to implement the
1 step, I think you may consider display the certain DataGrid or Item into
another new page, then let the customer print that single page only with
the Data he specified.

If you have any questions on it or my suggestion not quite suitable for
your situation, please feel free to let me know.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #2
Thanks Steven. Good suggestions. And you're right, the data structure is not
that complex. I only have one grandparent DataList holding one parent
DataList with one child DataGrid that display read-only data pulled in from
an Access database with a very similar structure.

"Steven Cheng[MSFT]" <v-******@online.microsoft.com> wrote in message
news:%2****************@cpmsftngxa07.phx.gbl...
Hi Allen,

Thank you for using Microsoft NewsGroup Service. Based on your description, you've some asp.net web pages which contains Some Data Reports. The reports consist of DataList which also has several DataGrid in each RowTemplate.
Since when printing the report, you want to let the customer specify one of the DataGrid in DataList to be printed? Please correct me if my
understanding of your problem is not quite correct.
Generally, in a web page, if the client side want to print a page, it'll
cause the whole page to be printed out. The print operation is page based.
As for your situation, you want part of a page or part of a WebControl's
Items to be printed out. Would you consider the following suggestion:

1.If the DataItems(Those Grids in the DataList) 's structure is not very
complex, you may try hidden the other Items, Grids the customer want to
print a certain one of them. Many Serverside controls can set its display
status via seting the "Visible" property.

2.If the page structure is so complex that not convenient to implement the
1 step, I think you may consider display the certain DataGrid or Item into
another new page, then let the customer print that single page only with
the Data he specified.

If you have any questions on it or my suggestion not quite suitable for
your situation, please feel free to let me know.
Steven Cheng
Microsoft Online Support

Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)

Nov 18 '05 #3

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

Similar topics

6
by: Umut K. | last post by:
Hi all, I've a DataList control and it's DataBound by a SqlDataReader... The Reader returns say 3 records and as expected the datalist shows 3 rows. What i want to do is to add another extra...
0
by: Barry | last post by:
Hi, I have a Datalist inside the ItemTemplate of another DataList. When I drilldown, I'm not getting any data in either the itemtemplate or headertemplate of the second DataList. I've confirmed...
1
by: Dirk Meusel | last post by:
Background: On my webform a simple datalist shows one column. The databind is done in the page_load event. In the ItemTemplate a linkbutton serves for providing the Select Command. Problem:...
2
by: Kel Good | last post by:
Hello, I am binding a custom IList object to a DataList that I am using for a web menu. The items in the custom IList have properties that allow me to dynamically define how my menu behaves. My...
3
by: Stimp | last post by:
I have a datalist that outputs a link to a picture in each ItemTemplate: e.g. <asp:DataList id="DataList1" ...etc> <ItemTemplate> <a href='Pic.aspx?pic=somenumber'>picture</a> </ItemTemplate>...
1
by: Eirik Eldorsen | last post by:
I'm trying to set alternating bgcolor for a datalist with 2 columns. My problem is that its the alternating cell that get the bgcolor, not the row. Is it possible to set alternating color of rows?...
5
by: Patrick.O.Ige | last post by:
I'm binding a CheckBoxlist below in the ItemDataBound(the CheckBoxList is in a Datalist) By doing "li.Selected = True" i can see all the checkBoxes are selected. But what i want is to be able...
2
by: Fabiano | last post by:
Please, i need to hide a Item(Collumn) of a DataList that is inside of another DataList based on some data that i my database returns. For a sample i created the code above, but it doesn't work....
0
by: Per W. | last post by:
Hi, in ItemDatabound i can use e.item.dataitem(x).Tostring to read a field from a datalist, but what to use to read from the datalist when a button in the selected row in the datalist is pushed and...
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...
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...
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: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
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...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.