|
.net
newsgroups
|
|||||||||||||||||||||||
|
|||||||||||||||||||||||
Someone Has To Have An Answer ???I have posted this same question several times, however, no one seems to
have any idea how to accomplish this task. I have a fairly long datagrid that spans several pages when printed. Problem is, when printed, the last row of each page tends to get cut off. Ideally what I would like is to print the datagrid on multiple pages while persisting the datagrid header on each page and without cutting off the end row(s). I do not have VStudio, Reporting Services or Crystal Reports. Any ideas how this can be accomplished? Links, samples? This seems to be a problem that absolutely no one has a solution to (or that can point me to anyway). I'd certainly appreciate any help at all. Thanks a lot. Here you go...
http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakbefore.asp http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakafter.asp http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/thead.asp http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/tfoot.asp Let us know if you are not able to put this together. HTH Trevor Benedict R MCSD Show quoteHide quote "Jay" <msnews.microsoft.com> wrote in message news:OZgS4zdzFHA.1168@TK2MSFTNGP15.phx.gbl... >I have posted this same question several times, however, no one seems to >have any idea how to accomplish this task. > > I have a fairly long datagrid that spans several pages when printed. > Problem is, when printed, the last row of each page tends to get cut off. > Ideally what I would like is to print the datagrid on multiple pages while > persisting the datagrid header on each page and without cutting off the > end row(s). > > I do not have VStudio, Reporting Services or Crystal Reports. Any ideas > how this can be accomplished? Links, samples? This seems to be a problem > that absolutely no one has a solution to (or that can point me to anyway). > I'd certainly appreciate any help at all. > > Thanks a lot. > > > Thank you very much. I just can't seem to use these tags, etc. within a
datagrid. Would you please happen to have an example of this functionality within an asp.net datagrid? Thanks a lot. Show quoteHide quote "Trevor Benedict R" <trevorn***@yahoo.com> wrote in message news:%23XRaGefzFHA.664@tk2msftngp13.phx.gbl... > Here you go... > > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakbefore.asp > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakafter.asp > http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/thead.asp > http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/tfoot.asp > > Let us know if you are not able to put this together. > > HTH > > Trevor Benedict R > MCSD > > > "Jay" <msnews.microsoft.com> wrote in message > news:OZgS4zdzFHA.1168@TK2MSFTNGP15.phx.gbl... >>I have posted this same question several times, however, no one seems to >>have any idea how to accomplish this task. >> >> I have a fairly long datagrid that spans several pages when printed. >> Problem is, when printed, the last row of each page tends to get cut off. >> Ideally what I would like is to print the datagrid on multiple pages >> while persisting the datagrid header on each page and without cutting off >> the end row(s). >> >> I do not have VStudio, Reporting Services or Crystal Reports. Any ideas >> how this can be accomplished? Links, samples? This seems to be a >> problem that absolutely no one has a solution to (or that can point me to >> anyway). I'd certainly appreciate any help at all. >> >> Thanks a lot. >> >> >> > > For that matter. I can always adjust my application top use a repeater or
datalist, etc. as long as I can prevent the last row from being cut and have the header on every printed page. Show quoteHide quote "Jay" <msnews.microsoft.com> wrote in message news:%237JIH%23hzFHA.3856@tk2msftngp13.phx.gbl... > Thank you very much. I just can't seem to use these tags, etc. within a > datagrid. Would you please happen to have an example of this > functionality within an asp.net datagrid? > > Thanks a lot. > > > > > "Trevor Benedict R" <trevorn***@yahoo.com> wrote in message > news:%23XRaGefzFHA.664@tk2msftngp13.phx.gbl... >> Here you go... >> >> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakbefore.asp >> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakafter.asp >> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/thead.asp >> http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/tfoot.asp >> >> Let us know if you are not able to put this together. >> >> HTH >> >> Trevor Benedict R >> MCSD >> >> >> "Jay" <msnews.microsoft.com> wrote in message >> news:OZgS4zdzFHA.1168@TK2MSFTNGP15.phx.gbl... >>>I have posted this same question several times, however, no one seems to >>>have any idea how to accomplish this task. >>> >>> I have a fairly long datagrid that spans several pages when printed. >>> Problem is, when printed, the last row of each page tends to get cut >>> off. Ideally what I would like is to print the datagrid on multiple >>> pages while persisting the datagrid header on each page and without >>> cutting off the end row(s). >>> >>> I do not have VStudio, Reporting Services or Crystal Reports. Any ideas >>> how this can be accomplished? Links, samples? This seems to be a >>> problem that absolutely no one has a solution to (or that can point me >>> to anyway). I'd certainly appreciate any help at all. >>> >>> Thanks a lot. >>> >>> >>> >> >> > > I a also certainly open to using .net 2.0 if my tasks would be easier.
Show quoteHide quote "Jay" <msnews.microsoft.com> wrote in message news:%237JIH%23hzFHA.3856@tk2msftngp13.phx.gbl... > Thank you very much. I just can't seem to use these tags, etc. within a > datagrid. Would you please happen to have an example of this > functionality within an asp.net datagrid? > > Thanks a lot. > > > > > "Trevor Benedict R" <trevorn***@yahoo.com> wrote in message > news:%23XRaGefzFHA.664@tk2msftngp13.phx.gbl... >> Here you go... >> >> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakbefore.asp >> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakafter.asp >> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/thead.asp >> http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/tfoot.asp >> >> Let us know if you are not able to put this together. >> >> HTH >> >> Trevor Benedict R >> MCSD >> >> >> "Jay" <msnews.microsoft.com> wrote in message >> news:OZgS4zdzFHA.1168@TK2MSFTNGP15.phx.gbl... >>>I have posted this same question several times, however, no one seems to >>>have any idea how to accomplish this task. >>> >>> I have a fairly long datagrid that spans several pages when printed. >>> Problem is, when printed, the last row of each page tends to get cut >>> off. Ideally what I would like is to print the datagrid on multiple >>> pages while persisting the datagrid header on each page and without >>> cutting off the end row(s). >>> >>> I do not have VStudio, Reporting Services or Crystal Reports. Any ideas >>> how this can be accomplished? Links, samples? This seems to be a >>> problem that absolutely no one has a solution to (or that can point me >>> to anyway). I'd certainly appreciate any help at all. >>> >>> Thanks a lot. >>> >>> >>> >> >> > > Well, if you're willing to go to alternative controls or even 2.0, then
perhaps you'd consider a full-blown report writer. That works along with your grid. I can't tell you if it will meet all of your needs, but it's certainly another way to print info from your Web app. http://www.datadynamics.com/ has ActiveReports. You might want to check out it's Professional Edition features. Exports to PDF or HTML. -HTH Show quoteHide quote "Jay" <msnews.microsoft.com> wrote in message news:uu0Z2DizFHA.3856@tk2msftngp13.phx.gbl... >I a also certainly open to using .net 2.0 if my tasks would be easier. > > > "Jay" <msnews.microsoft.com> wrote in message > news:%237JIH%23hzFHA.3856@tk2msftngp13.phx.gbl... >> Thank you very much. I just can't seem to use these tags, etc. within a >> datagrid. Would you please happen to have an example of this >> functionality within an asp.net datagrid? >> >> Thanks a lot. >> >> >> >> >> "Trevor Benedict R" <trevorn***@yahoo.com> wrote in message >> news:%23XRaGefzFHA.664@tk2msftngp13.phx.gbl... >>> Here you go... >>> >>> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakbefore.asp >>> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakafter.asp >>> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/thead.asp >>> http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/tfoot.asp >>> >>> Let us know if you are not able to put this together. >>> >>> HTH >>> >>> Trevor Benedict R >>> MCSD >>> >>> >>> "Jay" <msnews.microsoft.com> wrote in message >>> news:OZgS4zdzFHA.1168@TK2MSFTNGP15.phx.gbl... >>>>I have posted this same question several times, however, no one seems to >>>>have any idea how to accomplish this task. >>>> >>>> I have a fairly long datagrid that spans several pages when printed. >>>> Problem is, when printed, the last row of each page tends to get cut >>>> off. Ideally what I would like is to print the datagrid on multiple >>>> pages while persisting the datagrid header on each page and without >>>> cutting off the end row(s). >>>> >>>> I do not have VStudio, Reporting Services or Crystal Reports. Any >>>> ideas how this can be accomplished? Links, samples? This seems to be >>>> a problem that absolutely no one has a solution to (or that can point >>>> me to anyway). I'd certainly appreciate any help at all. >>>> >>>> Thanks a lot. >>>> >>>> >>>> >>> >>> >> >> > > Thanks. I should also mention that the number of rows and the height of
those rows varies... Show quoteHide quote "Frankie" <BeansAndTa***@TacoTime.net> wrote in message news:uYHlc%23izFHA.2312@TK2MSFTNGP14.phx.gbl... > Well, if you're willing to go to alternative controls or even 2.0, then > perhaps you'd consider a full-blown report writer. That works along with > your grid. I can't tell you if it will meet all of your needs, but it's > certainly another way to print info from your Web app. > http://www.datadynamics.com/ has ActiveReports. You might want to check > out it's Professional Edition features. Exports to PDF or HTML. > > -HTH > > > "Jay" <msnews.microsoft.com> wrote in message > news:uu0Z2DizFHA.3856@tk2msftngp13.phx.gbl... >>I a also certainly open to using .net 2.0 if my tasks would be easier. >> >> >> "Jay" <msnews.microsoft.com> wrote in message >> news:%237JIH%23hzFHA.3856@tk2msftngp13.phx.gbl... >>> Thank you very much. I just can't seem to use these tags, etc. within a >>> datagrid. Would you please happen to have an example of this >>> functionality within an asp.net datagrid? >>> >>> Thanks a lot. >>> >>> >>> >>> >>> "Trevor Benedict R" <trevorn***@yahoo.com> wrote in message >>> news:%23XRaGefzFHA.664@tk2msftngp13.phx.gbl... >>>> Here you go... >>>> >>>> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakbefore.asp >>>> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/properties/pagebreakafter.asp >>>> http://msdn.microsoft.com/library/default.asp?url=/workshop/author/dhtml/reference/objects/thead.asp >>>> http://msdn.microsoft.com/workshop/author/dhtml/reference/objects/tfoot.asp >>>> >>>> Let us know if you are not able to put this together. >>>> >>>> HTH >>>> >>>> Trevor Benedict R >>>> MCSD >>>> >>>> >>>> "Jay" <msnews.microsoft.com> wrote in message >>>> news:OZgS4zdzFHA.1168@TK2MSFTNGP15.phx.gbl... >>>>>I have posted this same question several times, however, no one seems >>>>>to have any idea how to accomplish this task. >>>>> >>>>> I have a fairly long datagrid that spans several pages when printed. >>>>> Problem is, when printed, the last row of each page tends to get cut >>>>> off. Ideally what I would like is to print the datagrid on multiple >>>>> pages while persisting the datagrid header on each page and without >>>>> cutting off the end row(s). >>>>> >>>>> I do not have VStudio, Reporting Services or Crystal Reports. Any >>>>> ideas how this can be accomplished? Links, samples? This seems to be >>>>> a problem that absolutely no one has a solution to (or that can point >>>>> me to anyway). I'd certainly appreciate any help at all. >>>>> >>>>> Thanks a lot. >>>>> >>>>> >>>>> >>>> >>>> >>> >>> >> >> > > You are going to need to make a printable version of your page. Use the
tag links send by the guy at MSFT and CSS to provide formatting. The datagrid is an atomic control, and has no concept of "pages" beyond it's own. Despite your best efforts I think it would be neigh impossible to get it to behave in the fashion that you would like. Use multiple datagrids, with a limit of records on each page. On each "page" bind a datagrid with the proper number of rows, add a br tag with a page break style added to it at the end. Your HTML page will look like one long page, but print preview will tell a different story.
Other interesting topics
submit button - custom javascript
IIS 6.0 Event 1074 SqlDataSource - strange error (to me at least) ;-) Set Label Font? Menues with v1.1? ActiveDirectoryMembershipProvider ASP.NET 2.0 HTML mail does not work? Which account neets permission to read the Registry key. SKMMenu and SSL Permission for bin folder: ASP.NET app deployed under a web site |
|||||||||||||||||||||||