Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Stop making mediocre tutorials.The best tutorials are video! Camtasia Studio makes it easy to create engaging, buzz-building screen videos at any size, in any popular format. Download the free trial!
  #1  
Old March 11th, 2003, 09:50 PM
ss3x2002 ss3x2002 is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Mar 2003
Posts: 1 ss3x2002 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
Printing Reports Out

Hola Amigos:

This is my first crack at any VB so bear with my horrid newbie questions. First let me give my issue: I want to print a report out, landscape style one a page. This report will be multiple pages (roughly 20). The report is will have about 10 colums of numerical data with a label at the top.

What I have done is created a hidden form with a header on it and dynamcially fill about 150 text boxes with my calculations based on ranges of values. This method works great but i'm using frmFormName.Printform to print which is horridly slow for 20 pages and each page comes up to 900kb which is killing smaller non laser printers!!!!

I really need a better or a new method on how to fix this!
Thanks

Reply With Quote
  #2  
Old August 20th, 2003, 02:11 PM
agsuresh agsuresh is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jun 2002
Location: India
Posts: 5 agsuresh User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
There are many methods to print from Vb.
1) use crystall reports or similar utility
2) use dataReport that comes with vb. You have to use dataenvironment for this. There are methods to dinamicaly populate the dataReport. see the microsoft site for sample code.
2) use Printer object ( Printer.print etc )
3) create a text file (open "filename" for output as #1)
a) load the text file into RichTextBox and send to printer. This helps as a view also.
b) you may directly send the file to the printer using shell commands.
4) create file filestreamObject and do as above.

With 1 and 2 you may design the pages as you like. but with 3 and 4 , formating functions are limited.

as for speed while printing through windows.
1) printer should be bi directional for windows. It may bi-directional for DOS but not for windows.
2) use Draft printing.
3) as far as possible use only one font / size
4) in method 3 & 4 use fixed with fonts like "courier new" to obtain best alignment.

Hope this helps
Suresh

Reply With Quote
Reply

Viewing: Dev Shed ForumsProgramming Languages - MoreVisual Basic Programming > Printing Reports Out


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 4 hosted by Hostway