/    Sign up×
Community /Pin to ProfileBookmark

Positioning for print

I am building a invoice report from an XML file and converting it to XHTML to display it. What I need to know is, how can I guarantee that certain info is always printed at the bottom of the page.

The invoice is dynamic and can sometimes have pages of notes, or service items and when it gets printed, I always need the totals section to print on the bottom of the page even if it is the only thing on the last page. So how can I do this using CSS (absolute/relative positioning) or Javascript?

Thank you for any help with this.

to post a comment
JavaScript

2 Comments(s)

Copy linkTweet thisAlerts:
@tripwaterauthorMar 09.2005 — I want it to print at the bottom of whatever page it ends up on even if it is the only thing there. See what is happening is that we have a windows application that generates reports and they are very clean and neat and certain info has relative X,Y coords to make sure certain sections do not get split up and part of it gets printed on one page then the rest on the next. Now, we are trying to convert all of the data over to XML so others can have access to the data.

So no matter what, the end result needs to have the totals section print at the bottom of the last page. If there is not enough room to fit it then I need it to move to another page by itself and print at the bottom so it is always consistent.

I hope this clears it up a bit more. Thanks
Copy linkTweet thisAlerts:
@PittimannMar 09.2005 — Hi!

Maybe [URL=http://www.w3.org/TR/REC-CSS2/page.html]this[/URL] is helpful. You may also browse other sections of the site to learn about printing business using CSS.

Good luck - Pit
×

Success!

Help @tripwater spread the word by sharing this article on Twitter...

Tweet This
Sign in
Forgot password?
Sign in with TwitchSign in with GithubCreate Account
about: ({
version: 0.1.9 BETA 5.3,
whats_new: community page,
up_next: more Davinci•003 tasks,
coming_soon: events calendar,
social: @webDeveloperHQ
});

legal: ({
terms: of use,
privacy: policy
});
changelog: (
version: 0.1.9,
notes: added community page

version: 0.1.8,
notes: added Davinci•003

version: 0.1.7,
notes: upvote answers to bounties

version: 0.1.6,
notes: article editor refresh
)...
recent_tips: (
tipper: @Yussuf4331,
tipped: article
amount: 1000 SATS,

tipper: @darkwebsites540,
tipped: article
amount: 10 SATS,

tipper: @Samric24,
tipped: article
amount: 1000 SATS,
)...