473,406 Members | 2,377 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,406 software developers and data experts.

Printing a large form

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
3 1096
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
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
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

4
by: Jody Gelowitz | last post by:
I am having a problem with printing selected pages. Actually, the problem isn't with printing selected pages as it is more to do with having blank pages print for those pages that have not been...
5
by: VMI | last post by:
I have a BMP image (the form is also in PDF) that contains a scanned copy of a paper form that we need to fill out. Is it possible to use this image in my application so that the application can...
17
by: Alan Z. Scharf | last post by:
How can I disable the IE6 Print button and Ctrl-P for an ASP.Net web application? Thanks. Alan
7
by: Amirallia | last post by:
Hello! I have a wecontrol table in a page, this table has a number of variable rows depending of the choice of the user. But when the table has a large number of rows, the printing of the page...
8
by: Steve Macleod | last post by:
Hi, I was wondering if anyone had a solution for printing HTML elements (especially style elements). I do not wish to make any changes to the page, other than in the <css media="print"block. I can...
1
by: trey | last post by:
Hi all, I am developing an app using vs 2003,vb.net I present the user with several forms they are req'd to fill out which are quite lengthy (but neccesarily so). After finishing filling out...
8
by: Neo Geshel | last post by:
Greetings. BACKGROUND: My sites are pure XHTML 1.1 with CSS 2.1 for markup. My pages are delivered as application/xhtml+xml for all non-MS web clients, and as text/xml for all MS web...
0
by: Cruelemort | last post by:
All, I have just had to start looking at printing using CSS and have run into a bit of a problem. I have a div on my page that has a database- rendered Gantt chart type thing in it. This can get...
7
by: SpaceMarine | last post by:
hello, i have an application that builds up a large "incident report" for a law enforcement agency. In the end this is represented in a large object containing many properties and collections...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.