This topic is locked

Print friendly pages

11/1/2006 4:44:11 AM
ASPRunnerPro General questions
hanb author

I have now a print-friendly program made up by v4.1, that displays a single record in a special way, great for selective printing of one record. However prining the whole database is a problem, as print-friendly only displays the current page of the list program. By setting nr of records to 1, I solved the single recor/page printing, but I can't print more records or the whole database. I suppose I could solve it by setting the record per page count to multiple records, but than I can't print each record on a new page anymore.

Unless I am able to set a "newpage" somewhere, f.i. in the header or footer of the print-friendly program.

Can you suggest how to achieve this?

Han

Alexey admin 11/1/2006

Han,
to get an alternative copy of the page create a custom view for your table on theDatasource table tab in ASPRunner.
Modify Printer friendly or View page for this view in Visual Editor.

Then put a link to this modified page on your original List page.

hanb author 11/1/2006

Han,

to get an alternative copy of the page create a custom view for your table on theDatasource table tab in ASPRunner.
Modify Printer friendly or View page for this view in Visual Editor.

Then put a link to this modified page on your original List page.


Alexey, I am not clear on your answer, How does making a custom view solve the problem of inserting a page break to force a record on a single page, but still be able to print all records of the database.

As I understand it, a print friendly only prints all the records in the current page as defined in the list page.

So if I have 20 records in a page, it will print 20 records in the p.f. page, but sequentially behind each other, as I defines horizontal view. Where is the page break then?
Han

Sergey Kornilov admin 11/1/2006

Han,
here is the piece of HTML that inserts a page break:

<br style="page-break-before:always;">


You can add this piece of code to footer.asp.