Click here to Skip to main content
15,889,116 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am trying to print content of WebBrowser Control. When I save the content as .xps file , I see no color in the table. Does webbrowser control remove color formatting when printing? There has to be some explanation.

VB
WebBrowser1.DocumentText = "<table border="1"> <tr><td bgcolor="yellow">No Color visible here in xps file</td></tr> </table>"


I am able to see color in the webbrowser control but it removes color when saving it as xps?
Posted
Comments
Jim Meadors 1-Nov-14 1:00am    
There is probably something in your print code that is stripping it. That's where I would start looking.
Arbaaz Jalil 1-Nov-14 1:57am    
There is not print code as of now. I am right clicking the browser control and clicking print.
[no name] 1-Nov-14 11:58am    
No it does not, what you see is what you get. My guess is your printer is to blame. Check your printer settings or ink.

1 solution

This is an Old Post i Know but still its not marked as answered and this issue keep on repeating on other blogs and here..
therefore here you go.


Yes My dear .. check the browser Page Setup.. each browser have one..
in Firefox its at ( Main Menu =>File=>Page Setup.)
this will show you a dialog box check the
Print Background (Colors & images)
i would post a link but the community will consider me as a spammer if i do..


regards.
 
Share this answer
 
Comments
BillWoodruff 28-Nov-14 11:46am    
This is not an old question unless you consider 27 days old.

Even if you post a link to a commercial web-site selling software, as long as there is a useful code sample, or information, that will assist the OP ... that doesn't depend on a purchase, or require registration ... no one should report you as a spammer; if they do, report them on the "Spam and Abuse" Forum.
softnax Dubai 29-Nov-14 8:28am    
thank you .. and i will try to explain this is more details later on today ... as posting links in the comments is not allowed i did get my old account suspended for that.

regards.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900