Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Need some code for (form1.printform) 1

Status
Not open for further replies.

RSH

Technical User
Jun 15, 2000
55
US
I am using the form1.printform to print out my program data.
To prevent the screen from dumping we use a for next timing loop with vast numbers. This works fine except for the following. When the windows box indicating that printing is in progress comes up of course it is dead because there is no code and the computer is down in the timing loop. I feel there is a better way. Would also like to be able to cancel printing with the cancel button.
73 RSH [sig][/sig]
 
RSH, I mean no offense but it sounds like that program is an accident trying to find a way to happen. Look into the Printer object. PrintForm is just a quick and dirty way to print the contents of a form for debugging, etc.
[sig]<p> <br><a href=mailto: > </a><br><a href= plain black box</a><br>Don't sit down. It's time to dig another one.[/sig]
 
Alt255:
Have used the printer object on occassion. The trouble with same is the necessity for yards of code. Printform is so easy.
73 RSH [sig][/sig]
 
Again, RSH, &quot;easy&quot; usually results in questions in the Tek-Tips forums. It is rare when an &quot;easy&quot; solution actually solves a problem. Start with the recommended methods and work your way to a solution. If there is an error after incorporating the &quot;correct&quot; code it will be much easier to seek the solution at Tek-Tips.
[sig]<p> <br><a href=mailto: > </a><br><a href= plain black box</a><br>Don't sit down. It's time to dig another one.[/sig]
 
RSH,

Have you considered creating, from withing your VB app, a Word document and then printing that? It's an approach that's fairly widely used and allows you quite a bit of control pf how things will look. [sig]<p>Mike<br><a href=mailto:michael.j.lacey@ntlworld.com>michael.j.lacey@ntlworld.com</a><br><a href= Cargill's Corporate Web Site</a><br>Making mistakes, so you don't have to. &lt;grin&gt;[/sig]
 
Thanks Mike:
Had not considered that. Sure is worth a try. Current code works quite well with only a few loose ends but I am always open to suggestion. The current form is quite complex and
I cant see writing printer code for all that stuff when a screen dump to printer works so well.
73 RSH [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top