Jump to content

Recommended Posts

I need to create a printer friendly display of a page I am creating. Typically, on a page where the content is from a DB or something, this is no big deal, just send the content that was used to create the page to the print css controlled page and blammo, ready to print.

 

On the pages I am creating, we are using a good bit of javascript to allow the user to change values and recalculate other elements on the page for analysis purposes. This changes the details significantly throughout the page from what was originally retrieved from the DB, and since the changes are not (currently) being stored anywhere, getting these changes to the print preview page has me stumped. I was hoping that someone may have a solution to this little problem or point me in the right direction. ???

Link to comment
https://forums.phpfreaks.com/topic/155210-print-page-preview-question/
Share on other sites

I am using session variables to control the print preview output and also have a new print.css that I am using, and it is working nicely for the default page information.

 

I am attaching a word doc showing the form and the elements I am using. Almost all of these elements are editable and will change values in related element fields. So, it is possible to do recalculation of all the elements on the entire form. These changes will then need to be printed.

 

What I cannot get is how to capture these changes in the preview page. I hope that clarifies things somewhat (it is hard to explain but I am trying to be clear)

 

[attachment deleted by admin]

in fear of completely over-thinking this, isn't it just as simple as submitting it as a regular form?

 

as you said, all those fields are in a form, right?

 

just create a button to send the user to the print 'preview page'.

 

sorry if i'm coming across ignorant at all, but that's what i'm getting from what you are asking.

 

please, let me know why that wouldn't work.

in fear of completely over-thinking this, isn't it just as simple as submitting it as a regular form?

 

as you said, all those fields are in a form, right?

 

just create a button to send the user to the print 'preview page'.

 

sorry if i'm coming across ignorant at all, but that's what i'm getting from what you are asking.

 

please, let me know why that wouldn't work.

 

You are probably correct MrMarcus (thanks for the quick reply btw), but I am not a guru at this stuff at all and things like this really hurt my head (as can be seen by the keyboard impression on my forehead).

 

If it is possible to take a form, as defined in the previous post, with all of its elements and plop it onto a new page, then this is a technique I need to learn.

 

I am starting to form an idea on how to do this, but it will take a good bit of testing to validate it. If you have any documentation or can reference a tutorial/post on how this works, please let me know.

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.