I was thinking of adding comments to my page:
<!--StartPrint-->
Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah,Blah,blah,blah
<!--EndPrint-->
Then when someone clicks Print Page, it calls PrintPage.aspx taking the
info from between the comments and formats and displays it.
Any thoughts, examples, or links to examples.
Thanks,
Greg
It's really kind of simple. All you have to do is set a link to
yourself, setting a flag in the querystring. Then, in your ASP.NET page, if
the flag is checked, you choose to leave out some of the formatting using a
conditional statement.
Or, if there is a consistent way that you know you can format the page
(always use the same font, remove header elements, or something of the
sort), you can have a page that takes the URL to format in the query string.
That page would load the page into memory, and format the page the way you
wish, returning the new content.
Hope this helps.
--
- Nicholas Paldino [.NET/C# MVP]
- m...@spam.guard.caspershouse.com
"hartbypass" <gh...@medex.com> wrote in message
news:1130595191.0...@o13g2000cwo.googlegroups.com...
It's really kind of simple. All you have to do is set a link to
yourself, setting a flag in the querystring. Then, in your ASP.NET page, if
the flag is checked, you choose to leave out some of the formatting using a
conditional statement.
Or, if there is a consistent way that you know you can format the page
(always use the same font, remove header elements, or something of the
sort), you can have a page that takes the URL to format in the query string.
That page would load the page into memory, and format the page the way you
wish, returning the new content.
Hope this helps.
"hartbypass" <gh...@medex.com> wrote in message
news:1130595191.0...@o13g2000cwo.googlegroups.com...
Would you have an example written in C#? I think the latter is what I
would want to do. I would like to have one page that is my "Print
Page" and pass the information I want to print to it. That way if I
change the format or layout I only have to do it in one spot. That why
I was thinking of trying to grab the html from the page between the
comment block and pass that on to the print page.
Thanks,
Greg