designsweb Posted July 15, 2014 Share Posted July 15, 2014 I hope that this is a simple fix that I can't for the life of me see. I have a page which selects data from a database for a selected person within a selected month which is used to provide an employee with their current or historic earnings. Up until the end of April you could hit the print button and it would print out the page as per what is on the screen (text only) in the correct layout minus the colours and boxes etc, this sufficed perfectly well. Then in May for no apparent reason the information that was collected from the database still displayed but now also has the url printed out, this is also the case when you use the browser print function. Please see the attached image of both scenarios. Any thoughts or help to solve this problem would be greatly appreciated. Thanks Ian. Quote Link to comment Share on other sites More sharing options...
ginerjm Posted July 15, 2014 Share Posted July 15, 2014 Any use of the print button in your browser is not related to php. Is this print button part of the application or the browser? Quote Link to comment Share on other sites More sharing options...
designsweb Posted July 15, 2014 Author Share Posted July 15, 2014 Hi Ginerjm, thanks for your reply it's simply an image on the page that fires "javascript:window.print", it used to print out exactly what I saw on the screen (less colours and boxes) then for some reason it simply stopped, If I use the firefox browser print function it's the same, shows the url the information came from aswell as the info, as shown in the image. Quote Link to comment Share on other sites More sharing options...
ginerjm Posted July 15, 2014 Share Posted July 15, 2014 Aah! It's a js problem. Perhaps you should move this to the JS forum instead of the php one. Quote Link to comment Share on other sites More sharing options...
.josh Posted July 17, 2014 Share Posted July 17, 2014 This isn't a javascript problem either. It's a browser setting problem. Go to File > Page Setup and File > Print.. and make sure relevant settings are enabled (e.g. make sure Page Setup > Format & Options > Options > Print Background (colors & images) is checked). If all those look good, check your printer settings from whatever software came with your printer. IOW basically it sounds like somehow your printer settings have been changed to "color saving" or "mobile" type options. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.