By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
424,678 Members | 2,021 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 424,678 IT Pros & Developers. It's quick & easy.

Printing a large form

P: n/a
Hi All,

I have a requirement to print a large form with many fields (entered through
a separate data entry form). Due to the nature of the field and the way the
clients wants the printed version laid out, I have to insert spaces and
force line breaks to keep the page within a pixel width. Unfortunately, this
means I cannot reliably say which rows should have a page break after them
because it may change from instance to instance..

Is there a way to tell the 'current pixel height' of a page as it is being
rendered so I can make a decision about whether or not to insert a page
break?

Has anyone else faced such a problem with page to print?

Any advice is most appreciated!

Rob
:)
Jul 23 '05 #1
Share this Question
Share on Google+
3 Replies


P: n/a
On Mon, 14 Mar 2005 22:31:45 +1100, in comp.lang.javascript "Robert
Mark Bram" <none> wrote:
| Hi All,
|
| I have a requirement to print a large form with many fields (entered through
| a separate data entry form). Due to the nature of the field and the way the
| clients wants the printed version laid out, I have to insert spaces and
| force line breaks to keep the page within a pixel width. Unfortunately, this
| means I cannot reliably say which rows should have a page break after them
| because it may change from instance to instance..
|
| Is there a way to tell the 'current pixel height' of a page as it is being
| rendered so I can make a decision about whether or not to insert a page
| break?
|
| Has anyone else faced such a problem with page to print?
|
| Any advice is most appreciated!
|
| Rob
| :)


I think if you want such control you'll have to go the PDF route.

---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Jul 23 '05 #2

P: n/a
Hi Jeff,
I think if you want such control you'll have to go the PDF route.
Unfortunately I have already suggested this and had it refused. :-/

Rob
:)

"Jeff North" <jn******@yahoo.com.au> wrote in message
news:o7********************************@4ax.com... On Mon, 14 Mar 2005 22:31:45 +1100, in comp.lang.javascript "Robert
Mark Bram" <none> wrote:
| Hi All,
|
| I have a requirement to print a large form with many fields (entered
through
| a separate data entry form). Due to the nature of the field and the way
the
| clients wants the printed version laid out, I have to insert spaces and
| force line breaks to keep the page within a pixel width. Unfortunately,
this
| means I cannot reliably say which rows should have a page break after
them
| because it may change from instance to instance..
|
| Is there a way to tell the 'current pixel height' of a page as it is
being
| rendered so I can make a decision about whether or not to insert a page
| break?
|
| Has anyone else faced such a problem with page to print?
|
| Any advice is most appreciated!
|
| Rob
| :)


I think if you want such control you'll have to go the PDF route.

---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------

Jul 23 '05 #3

P: n/a
On Tue, 15 Mar 2005 07:43:15 +1100, in comp.lang.javascript "Robert
Mark Bram" <none> wrote:
| Hi Jeff,
|
| > I think if you want such control you'll have to go the PDF route.
|
| Unfortunately I have already suggested this and had it refused. :-/


You may want to look at the w3c CSS options for printing pages. This
is CSS2. It's implementation is flaky between different browsers.
http://www.w3.org/TR/REC-CSS2/page.html
---------------------------------------------------------------
jn******@yourpantsyahoo.com.au : Remove your pants to reply
---------------------------------------------------------------
Jul 23 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.