CodeCharge Studio
search Register Login  

Visual PHP Web Development

Visually Create Internationalized Web Applications, Web Reports, Calendars, and more.
CodeCharge.com

YesSoftware Forums -> CodeCharge Studio -> ASP

 Printing Over Several Pages (FORGET TECH)

Print topic Send  topic

Author Message
Joe
Posted: 04/27/2004, 1:46 PM

Print Records
I have a grid that returns 1000 records over 13 pages, How can i add a Print Function to the Header to print all 13 pages instead of print 1 page at a time. also would it be possible to print the header on each page also, or do i have to make a grid hold 1000 records on one page and then print.. Below is some info about my grid.

Grid Name: AllocationReport
Connection Name: Connection1
Header Page Name: Header
Program: CCS - ASP/template/ MS Access 2000

Thanks Again,
Joe ;-)
peterr


Posts: 5971
Posted: 04/27/2004, 2:52 PM

I don't believe that it is currently possible to print header on each page (this is rather a feature specific to reporting tools).
Regarding printing all records, I think that you could create another twin page but set it to display all records. This probably could be a pop-up page where can execute the print function automatically and automatically close the pop-up page with JavaScript like:
<script language="JavaScript" type="text/javascript">window.close();</script>

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
Sean

Posts: 39
Posted: 04/27/2004, 3:42 PM

Since you are using Access, you could use what I use.

I use a tool called RPT Software - Report Server (www.rptsoftware.com) on my webserver.

It is pretty easy to use (uses COM) and uses exising Access Reports to make your web reports printable in either .SNP or .PDF (if you have a PDF writer). It is pretty cheap at only $99 but they do have an unlimited trial version that just makes you re-run the report after every 5 tries. I like it so far and write my reports in .PDF dynamically!
View profile  Send private message
Sean

Posts: 39
Posted: 04/27/2004, 4:07 PM

Also, by doing it this way, you can setup your Access Report with whatever header/footer you want, and it prints all records/pages very nicely.

Give it a try if it's what you're looking for.
View profile  Send private message
Joe Miller
Posted: 04/28/2004, 7:50 AM

peterr
How can i make a link to take the search criteria and duplicated it into another window,from the grid results page; like you said, A pop up window.? i am a little lost with it, for the javascript, good thought, Thanks Alot, You are the man, all this help is great, you know your stuff, you should be running YesSoftware.
peterr


Posts: 5971
Posted: 04/28/2004, 11:12 AM

Thanks Joe :-)
I just tried adding such pop-up link to the MultiSelectSearch page in CCSExamplePack.
I added the standard Link control at the top ofthe page (from the Forms tab in Toolbox, not HTML), then set its "Default" property to "Print" (including quotes), then in "Href Source" I specified the destination page, then I switched to the in HTML mode and changed href="{Link1_Src}" to href="{Link1_Src}" target="_blank", and... that's it.
The "Preserve Parameters" property of the Link needs to be set to "GET" to preserve the current URL parameters (search results), but it was already set to GET by default.

_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
peterr


Posts: 5971
Posted: 04/28/2004, 11:16 AM

I forgot to add that in the Link's "Remove Parameters" property you may need to specify some URL parameters that you want to remove. This probably would be at least the URL containing the grid page number, like "employeesPage" in the example I tested.
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message
joe
Posted: 04/29/2004, 1:45 PM

how do i include the print function into that,
peterr


Posts: 5971
Posted: 04/29/2004, 1:49 PM

Ask my friend Google :-)
http://www.google.com/search?q=javascript+print+function
http://groups.google.com/groups?q=javascript%20print%20function
_________________
Peter R.
YesSoftware Forums Moderator
For product support please visit http://support.yessoftware.com
View profile  Send private message

Add new topic Subscribe to topic   


These are Community Forums for users to exchange information.
If you would like to obtain technical product help please visit http://support.yessoftware.com.

MS Access to Web

Convert MS Access to Web.
Join thousands of Web developers who build Web applications with minimal coding.

CodeCharge.com

Home   |    Search   |    Members   |    Register   |    Login


Powered by UltraApps Forum created with CodeCharge Studio
Copyright © 2003-2004 by UltraApps.com  and YesSoftware, Inc.