Jump to content

Help related to Print


santosh22

Recommended Posts

Hello,

 

I have working on a PHP application which would print journals. The user will type in the content (rich editor with formatting) and select the recipients.

 

Upon submit, my code would need to fetch the address details of the selected recipients from database & use the content typed by the user to print a separate hard copy for each of the selected recipients. 

 

Till now, I had been working on static printing using JavaScript. This is new to me. Any idea to design the code in order to get the iterative print is highly appreciated.

 

Many Thanks

Link to comment
https://forums.phpfreaks.com/topic/279335-help-related-to-print/
Share on other sites

Thanks for the response .. 

 

Below is the answer to your queries.

 

Input I get from the user: Name of the recipients, & the content to be printed. (more than one recipients)

Search in the database: Search the name of the recipients in the user table and fetch the address for each of them.

Journal Output : At the top address of the user followed by the content printed by the user

 

I use mysql database.

 

Thanks again 

Not familiar with printing using JS.  Have had much success using the FPDF class of php.  Takes a little experimenting to get used to it but works great.  Allows you complete freedom in design an output, so designing your journal output page will be easy, then you simply call your PrintPDF function with a php var containing the addressee and the journal text and you're done.

 

Of course you will have to actually manually press File,Print at the end of your process, but that's minor.

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.