I'm using php. In my application there are 2 pages. data.php and print.php. User select some data range to get a report in data.php and i want to open a print.php with the data according to user selected dates. How can i do that?
How to open a new window to print data
Collapse
X
-
Well, what about using a normal database function to recall the data you wanted between dates and output it in a new window and then display a javascript print button?
You cannot automatically force a print. They will have to click a button, so you may as well make a nice output page and just use that button.Comment
-
Originally posted by PurpleHi ghjk,
Do you want this to launch in a new browser window or within the same ? Is the user hitting a print button ?
Regards
Purple
Yes .I want to my data to be load in new browser. Then i can print as normal web page.(File->Print)Comment
Comment