DeveloperBarn Forums

DeveloperBarn

Programming & IT forum

Print out data on a letterhead format

This is a discussion on Print out data on a letterhead format within the .Net Development forums, part of the Programming & Scripting category; Hi guys i'm going to be re-writing and classic asp application to .Net, now one of the functions takes a ...

Go Back   DeveloperBarn Forums > Programming & Scripting > .Net Development

  #1  
Old May 22nd, 2008, 05:09 AM
Shem's Avatar
Barn Enthusiast
 
Join Date: Mar 2008
Posts: 292
Rep Power: 2
Shem is on a distinguished road
Default Print out data on a letterhead format

Hi guys

i'm going to be re-writing and classic asp application to .Net,
now one of the functions takes a report and displays it on
the comapnys letterhead i.e. the page has a header and footer,
and this page prints out perfectly on a A4 page.

If the report is longer than an A4 page, it will split the report on to
2 pages. How i've worked this out is by counting the number of
lines per report and splitting it up every 30 or so lines.

Is there a better way to do this in .Net?

Shem
Reply With Quote
  #2  
Old May 22nd, 2008, 06:01 AM
Barn Regular
 
Join Date: Apr 2008
Posts: 84
Rep Power: 2
noFriends is on a distinguished road
Default

are you using some kind of report object?

Maybe the object has some kind of function for that?
Reply With Quote
  #3  
Old May 22nd, 2008, 06:13 AM
Shem's Avatar
Barn Enthusiast
 
Join Date: Mar 2008
Posts: 292
Rep Power: 2
Shem is on a distinguished road
Default

no i'm not, built the functions myself.

basically all i do is count number of lines, when i reach a certain amount of
lines i just add a footer, then add a header and then loop through the rest
of the results until again it reaches a certain amount of lines and so the whole
process continues.

Shem
Reply With Quote
  #4  
Old May 22nd, 2008, 09:15 AM
jmurrayhead's Avatar
The Barnfather
 
Join Date: Mar 2008
Real name: Jason
Location: Washington, D.C.
Posts: 1,962
Blog Entries: 8
Rep Power: 15
jmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud ofjmurrayhead has much to be proud of
Default

Since we're talking .net...you should take advantage of report objects. See this: Reports Web Site : The Official Microsoft ASP.NET Site
__________________
jmurrayhead
If you agree with me... click the icon!
If my post solved your problem, click the button in the lower right-hand corner of the post.

If you like it here...throw us a few bones to help
support us.

Join our Folding team: DeveloperBarn Folding

Reply With Quote
The Following User Says Thank You to jmurrayhead For This Useful Post:
Shem (June 23rd, 2008)
Reply

  DeveloperBarn Forums > Programming & Scripting > .Net Development

Bookmarks

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads

Thread Thread Starter Forum Replies Last Post
format currency to display by thousands Rebelle ASP Development 2 April 29th, 2008 10:32 PM


All times are GMT -4. The time now is 06:56 AM.


Copyright ©2008-2010, DeveloperBarn

Content Relevant URLs by vBSEO 3.3.2