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

Sponsored Links

Discuss "Print out data on a letterhead format" in the .Net Development forum.

.Net Development - Learn about the Microsoft.Net framework and how to create powerful web-based (ASP.net) and client-based (Windows Forms) applications utilizing various languages such as C#, VB.Net, J# and others.


Reply « Previous Thread | Next Thread »  
 
LinkBack Thread Tools Display Modes
  #1  
Old May 22nd, 2008, 05:09 AM
Shem's Avatar
Barn Enthusiast

 
Join Date: Mar 2008
Posts: 261
Thanks: 30
Thanked 5 Times in 5 Posts
Rep Power: 1
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
Sponsored Links
  #2  
Old May 22nd, 2008, 06:01 AM
Moderator

 
Join Date: Apr 2008
Posts: 18
Thanks: 5
Thanked 0 Times in 0 Posts
Rep Power: 1
noFriends is an unknown quantity at this point

Awards Showcase
Classic ASP 
Total Awards: 1

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: 261
Thanks: 30
Thanked 5 Times in 5 Posts
Rep Power: 1
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
Location: Reston, VA, USA
Posts: 820
Thanks: 20
Thanked 74 Times in 71 Posts
Blog Entries: 5
Rep Power: 3
jmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura aboutjmurrayhead has a spectacular aura about

Awards Showcase
Microsoft .Net Microsoft SQL Server Microsoft Windows Classic ASP 
Total Awards: 4

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.

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
Forum Jump

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 07:33 PM.



Content Relevant URLs by vBSEO 3.2.0