0

Print styles

asked 2014-11-26 12:58:30 +0800

Neus gravatar image Neus
1415 14

Hi I'm trying to print a ZK page but the colors of text and background-colors doesn't appear in my printed page. I look at zk styles and see that it is implementing some styles for print media. In zk.wcs there's a style like this:

@media print{
    *{text-shadow:none!important;color:#000!important;background:transparent!important; ...

And that's why my colors are not being printed! How can I remove this style????

Thank you!

delete flag offensive retag edit

Comments

It is a known bug: http://tracker.zkoss.org/browse/ZK-2491

vincentjian ( 2014-11-27 04:22:34 +0800 )edit

ok, it seems is fixed. I will take a look at it. Though in the bug is only mentioned the background color, not the front color. Thank you!

Neus ( 2014-11-27 07:53:00 +0800 )edit

1 Answer

Sort by ยป oldest newest most voted
0

answered 2014-11-27 08:16:09 +0800

Neus gravatar image Neus
1415 14

I downloaded the newest Freshly Build to check if the bug is fixed but when I install it and run my application it crashes with this exception:

org.zkoss.lang.SystemException: org.xml.sax.SAXParseExceptionpublicId: -//W3C//DTD HTML 4.01 Transitional//EN; systemId: http://www.w3.org/TR/html4/loose.dtd; lineNumber: 31; columnNumber: 3; The declaration for the entity "HTML.Version" must end with '>'.
at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method)
at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:57)
at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
at org.zkoss.lang.Classes.newInstance(Classes.java:75)
at org.zkoss.lang.Exceptions.wrap(Exceptions.java:163)
at org.zkoss.lang.SystemException$Aide.wrap(SystemException.java:42)
at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:157)
at org.zkoss.web.util.resource.ResourceCaches.get(ResourceCaches.java:121)
at org.zkoss.zk.ui.metainfo.PageDefinitions.getPageDefinition(PageDefinitions.java:139)
at org.zkoss.zk.ui.impl.AbstractUiFactory.getPageDefinition(AbstractUiFactory.java:165)
at org.zkoss.zk.ui.http.ExecutionImpl.getPageDefinition(ExecutionImpl.java:376)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:251)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:243)
at org.zkoss.zul.Include.afterCompose(Include.java:478)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild0(UiEngineImpl.java:878)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:826)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:735)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreateChild(UiEngineImpl.java:797)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate0(UiEngineImpl.java:757)
at org.zkoss.zk.ui.impl.UiEngineImpl.execCreate(UiEngineImpl.java:699)
at org.zkoss.zk.ui.impl.UiEngineImpl.createComponents(UiEngineImpl.java:1080)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents0(AbstractExecution.java:251)
at org.zkoss.zk.ui.impl.AbstractExecution.createComponents(AbstractExecution.java:243)
at org.zkoss.zk.ui.Executions.createComponents(Executions.java:176)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML.CrearPanelHTML(CrearPortalHTML.java:309)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML.addDiv(CrearPortalHTML.java:293)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML.crearPanel(CrearPortalHTML.java:197)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML.tickTimer(CrearPortalHTML.java:325)
at org.sts.generales.Herramientas.Paneles.CrearPortalHTML$1.onEvent(CrearPortalHTML.java:381)
at org.zkoss.zk.ui.AbstractComponent.onEvent(AbstractComponent.java:2752)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2723)
at org.zkoss.zk.ui.AbstractComponent.service(AbstractComponent.java:2664)
at org.zkoss.zk.ui.impl.EventProcessor.process(EventProcessor.java:136)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.process0(EventProcessingThreadImpl.java:536)
at org.zkoss.zk.ui.impl.EventProcessingThreadImpl.run(EventProcessingThreadImpl.java:463)
Caused by: org.xml.sax.SAXParseExceptionpublicId: -//W3C//DTD HTML 4.01 Transitional//EN; systemId: http://www.w3.org/TR/html4/loose.dtd; lineNumber: 31; columnNumber: 3; The declaration for the entity "HTML.Version" must end with '>'.
at org.apache.xerces.util.ErrorHandlerWrapper.createSAXParseException(Unknown Source)
at org.apache.xerces.util.ErrorHandlerWrapper.fatalError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLErrorReporter.reportError(Unknown Source)
at org.apache.xerces.impl.XMLScanner.reportFatalError(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanEntityDecl(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDecls(Unknown Source)
at org.apache.xerces.impl.XMLDTDScannerImpl.scanDTDExternalSubset(Unknown Source)
at org.apache.xerces.impl.XMLDocumentScannerImpl$DTDDispatcher.dispatch(Unknown Source)
at org.apache.xerces.impl.XMLDocumentFragmentScannerImpl.scanDocument(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XML11Configuration.parse(Unknown Source)
at org.apache.xerces.parsers.XMLParser.parse(Unknown Source)
at org.apache.xerces.parsers.AbstractSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl$JAXPSAXParser.parse(Unknown Source)
at org.apache.xerces.jaxp.SAXParserImpl.parse(Unknown Source)
at javax.xml.parsers.SAXParser.parse(SAXParser.java:328)
at org.zkoss.idom.input.SAXBuilder.build(SAXBuilder.java:298)
at org.zkoss.zk.ui.metainfo.Parser.parse(Parser.java:113)
at org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:208)
at org.zkoss.zk.ui.metainfo.PageDefinitions$MyLoader.parse(PageDefinitions.java:197)
at org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:87)
at org.zkoss.web.util.resource.ResourceLoader.load(ResourceLoader.java:33)
at org.zkoss.util.resource.ResourceCache$Info.load(ResourceCache.java:227)
at org.zkoss.util.resource.ResourceCache$Info.<init>(ResourceCache.java:202)
at org.zkoss.util.resource.ResourceCache.get(ResourceCache.java:134)
... 28 more

What does this means?????

link publish delete flag offensive edit
Your answer
Please start posting your answer anonymously - your answer will be saved within the current session and published after you log in or create a new account. Please try to give a substantial answer, for discussions, please use comments and please do remember to vote (after you log in)!

[hide preview]

Question tools

Follow
1 follower

RSS

Stats

Asked: 2014-11-26 12:58:30 +0800

Seen: 8 times

Last updated: Nov 27 '14

Support Options
  • Email Support
  • Training
  • Consulting
  • Outsourcing
Learn More