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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Printed form generation...

Status
Not open for further replies.

varnix

Programmer
Joined
Jan 7, 2002
Messages
94
Location
US
We have developed a software & hardware inventory application using CF.

One of the functions we did when this was just a straight access app was to generate installation paper work.

Whenever a PC comes in we need to have a sheet for the PC, Monitor, Office License, etc for proper tracking on our end.

However, if we buy 5 copies I need to have 5 print outs, but right now when I generate it to HTML using the data from the DB, some of the sheets roll onto the previous or next sheet.

Is there a way to go direct to a PDF and have that auto load in the browser (or a browser window) so that it can then be printed?

Thanks!
 
Hey Varnix,

I think all you need to do is put this between your pages in the html. This will allow you to tell IE where to make the page breaks when printing.

<p style=&quot;page-break-before: always&quot;>

It doesn't work with NS but should allow you to control your page breaks if you're using IE. If you want to redirect to a .pdf though, just use the <cflocation> tag to redirect the browser.

<cflocation url=&quot;
Hope this helps,
GJ
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top