Printing problem

Hi,
I have a Vaadin page with vertical layout and in it I have a button with javascript print function and a panel with some content. When I deploy the application in development environment on Tomcat 6 everything works fine. But when I deploy to our test server Weblogic 11g all that get’s printed is correct number of empty pages. So all content is missing. Any suggestions what could be the problem and where to look for the solution? I can’t do development and debug on Weblogic.

Thanks,
Jari

Hi Jari,

were you using the same browser on your development environment and when trying out the WebLogic test server? To me this sounds like it could be a browser specific issue.

  • Teemu

Jep, same browser IE 8 all the time. That’s the only browser allowed by company.

Found out some new information. I can only print from Tomcat when I use “localhost” address. When pointing browser to the IP of my workstation I end up with same results as with Weblogic which is correct number of empty pages.

This really is driving me nuts :smiley:

Could this be an issue with a proxy you might be using to access the Internet? In a typical setting the proxy is not used for
localhost
access so that might explain the differences between accessing via
localhost
address and the IP.

  • Teemu

We do have a proxy but I somehow doubt that’s the reason, since the content is visible in browser using both localhost and ip. And after that printing is client side action, so no proxy is involved anymore.

Sometimes this helps when I’m having print-issues in IE (blank pages).

@media print {
	#__gwt_historyFrame {
    	 display:none;
	}

	.v-ie6,
	.v-ie6 DIV,
	.v-ie7,
	.v-ie7 DIV,
	.v-ff3,
	.v-ff3 DIV  {
		overflow: visible !important;
		background-color: white !important;
	}
	
	.v-label {	
		color: black !important;
	}}

Depends on the application of course.

Thanks Risto, that did the trick. There is still a small problem: one empty page get’s printed as first page, but at least the content gets printed as well. I’m happy :slight_smile: