common Posted December 4, 2012 Share Posted December 4, 2012 Hi Guys, I am working on 2 pages. One page has a list of accounts with a form and this is submitted to second page. The second page displays html of documents(like invoices and so on.) that need to be printed. The system I work in is a couple of pages in framesets. Now I want to have the html in the second page printed without showing the second page. So in other words: When the submit button is clicked I need the print box popup and when print is clicked the second page needs to be printed. Now what I have done, is to add a another frame to the frameset with a with of 0, so it will not be visible in the browser. And after the second page loads, I use the window.print() function to bring up the print box. My problem is, that this only works when I open the second page in a new window. And nothing happens when I open the second page in the additional frame. Now I havn't tried thisyet, but belives if I use parent.[framename].print() it will work for the frame. I want it work in both when opening the page in a new window and when I open it in the Additional frames. Does anyone know how I can do this? Thanks in advance Link to comment https://forums.phpfreaks.com/topic/271583-print/ Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.