Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » BIRT » Printing reports and the cancel button in progressbar
Printing reports and the cancel button in progressbar [message #253671] Tue, 28 August 2007 10:03 Go to next message
Tom Mising name is currently offline Tom Mising nameFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

sorry for multi posting, but another error/question occures my report
engine.

When i use the button "Print report on the server" a printing dialog
opens. But in this dialog no printer is available. I just tried several
operating systems. On Windows no printer is available, on Linux (Ubuntu)
the standard printer is "not-accepting-jobs". The printers have been
installed as a local printer over the tcp-ip interface.

How could i use this printing function correctly?

The other concern is the ProgressBar. When i generate a reaaaallyyyy big
report and it takes too much time, the user could press the "Cancel"
button. But when this button is clicked and the question afterwards is
accepted, the progess will go on. The page is locating another one, yes,
but if i have a look on the system utilisation, the cpu efficiency is
about 100%.

Is it possible to cancel the progress by pressing the "Cancel" button? And
how could i use the printer on the server?




Bye Tom
Re: Printing reports and the cancel button in progressbar [message #253948 is a reply to message #253671] Thu, 30 August 2007 08:41 Go to previous messageGo to next message
Liwen Chen is currently offline Liwen ChenFriend
Messages: 54
Registered: July 2009
Member
Print on server client need Printer which supports postscript print. You
should install a Printer in your machine which support postscript print
otherwise the printer list will be blank.

"Tom" <t.doberstein@stv-electronic.de> wrote in message
news:93e2c9fc67cf2c19bd5d58cf129d756a$1@www.eclipse.org...
> Hello,
>
> sorry for multi posting, but another error/question occures my report
> engine.
>
> When i use the button "Print report on the server" a printing dialog
> opens. But in this dialog no printer is available. I just tried several
> operating systems. On Windows no printer is available, on Linux (Ubuntu)
> the standard printer is "not-accepting-jobs". The printers have been
> installed as a local printer over the tcp-ip interface.
>
> How could i use this printing function correctly?
>
> The other concern is the ProgressBar. When i generate a reaaaallyyyy big
> report and it takes too much time, the user could press the "Cancel"
> button. But when this button is clicked and the question afterwards is
> accepted, the progess will go on. The page is locating another one, yes,
> but if i have a look on the system utilisation, the cpu efficiency is
> about 100%.
>
> Is it possible to cancel the progress by pressing the "Cancel" button? And
> how could i use the printer on the server?
>
>
>
>
> Bye Tom
>
Re: Printing reports and the cancel button in progressbar [message #254340 is a reply to message #253671] Tue, 04 September 2007 09:39 Go to previous messageGo to next message
Tom Mising name is currently offline Tom Mising nameFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

for generating a valid print under Windows i installed the
AdobePS
Printer
on my server.

This Generic Printer is an interface to your printer, for instance
"Standard TCP/IP Port". It works fine ecpecting a little exception: When i
create a report in landscape format the driver will only print in portrait
format.

Is it actually possible to print a report in landscape format from the
BIRT engine? Or is it a bug from the Adobe PostScript printer?



Bye Tom
Re: Printing reports and the cancel button in progressbar [message #254343 is a reply to message #253671] Tue, 04 September 2007 10:00 Go to previous messageGo to next message
Tom Mising name is currently offline Tom Mising nameFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

i forget to say that an exeption in the console, while trying to print,
occurs:

------------------------------------------------------------ --
[Fatal Error] :-1:-1: Premature end of file.

04.09.2007 11:48:10
org.eclipse.birt.report.engine.layout.pdf.font.FontConfigRea

der parseConfigFile

WARNUNG: Premature end of file.

org.xml.sax.SAXParseException: Premature end of file.

at org.apache.xerces.parsers.DOMParser.parse(Unknown Source)

at org.apache.xerces.jaxp.DocumentBuilderImpl.parse(Unknown Source)

at
org.eclipse.birt.report.engine.layout.pdf.font.FontConfigRea der.parse

ConfigFile(FontConfigReader.java:163)

at
org.eclipse.birt.report.engine.layout.pdf.font.FontConfigRea der.parse

ConfigFile(FontConfigReader.java:128)

at
org.eclipse.birt.report.engine.layout.pdf.font.FontConfigRea der.parse

FormatRelatedConfigFile(FontConfigReader.java:119)

at
org.eclipse.birt.report.engine.layout.pdf.font.FontHandler.g etFontMan

ager(FontHandler.java:230)

at
org.eclipse.birt.report.engine.layout.pdf.font.FontHandler.s etFormat(

FontHandler.java:261)

at
org.eclipse.birt.report.engine.layout.pdf.font.FontHandler.<init >(Fon

tHandler.java:103)

at
org.eclipse.birt.report.engine.layout.pdf.font.FontSplitter. <init>(Fo

ntSplitter.java:48)

at
org.eclipse.birt.report.engine.layout.pdf.text.ChunkGenerato r. <init>(

ChunkGenerator.java:34)

at
org.eclipse.birt.report.engine.layout.pdf.PDFTextLM$Composit or. <init>

(PDFTextLM.java:235)

at
org.eclipse.birt.report.engine.layout.pdf.PDFTextLM.<init>(PDFTextLM.

java:82)

at
org.eclipse.birt.report.engine.layout.pdf.PDFLayoutManagerFa ctory$Con

tentVisitor.handleText(PDFLayoutManagerFactory.java:217)

at
org.eclipse.birt.report.engine.layout.pdf.PDFLayoutManagerFa ctory$Con

tentVisitor.visitLabel(PDFLayoutManagerFactory.java:142)

at
org.eclipse.birt.report.engine.content.impl.LabelContent.acc ept(Label

Content.java:121)

at
org.eclipse.birt.report.engine.layout.pdf.PDFLayoutManagerFa ctory.cre

ateLayoutManager(PDFLayoutManagerFactory.java:73)

at
org.eclipse.birt.report.engine.layout.pdf.PDFLineAreaLM.hand leChild(P

DFLineAreaLM.java:167)

at
org.eclipse.birt.report.engine.layout.pdf.PDFLineAreaLM.trav erseChild

ren(PDFLineAreaLM.java:150)

at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildre

n(PDFStackingLM.java:118)

at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbs

tractLM.java:132)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .layoutCh

ildNode(PDFBlockStackingLM.java:109)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverse

Children(PDFBlockStackingLM.java:89)

at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildre

n(PDFStackingLM.java:118)

at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbs

tractLM.java:132)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .layoutCh

ildNode(PDFBlockStackingLM.java:109)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverse

Children(PDFBlockStackingLM.java:89)

at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildre

n(PDFStackingLM.java:118)

at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbs

tractLM.java:132)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .layoutCh

ildNode(PDFBlockStackingLM.java:109)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverse

Children(PDFBlockStackingLM.java:89)

at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildre

n(PDFStackingLM.java:118)

at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbs

tractLM.java:132)

at
org.eclipse.birt.report.engine.layout.pdf.PDFRowLM.traverseC hildren(P

DFRowLM.java:88)

at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildre

n(PDFStackingLM.java:118)

at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbs

tractLM.java:132)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .layoutCh

ildNode(PDFBlockStackingLM.java:109)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverse

Children(PDFBlockStackingLM.java:89)

at
org.eclipse.birt.report.engine.layout.pdf.PDFTableLM.travers eChildren

(PDFTableLM.java:108)

at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildre

n(PDFStackingLM.java:118)

at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbs

tractLM.java:132)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .layoutCh

ildNode(PDFBlockStackingLM.java:109)

at
org.eclipse.birt.report.engine.layout.pdf.PDFBlockStackingLM .traverse

Children(PDFBlockStackingLM.java:89)

at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildre

n(PDFStackingLM.java:118)

at
org.eclipse.birt.report.engine.layout.pdf.PDFAbstractLM.layo ut(PDFAbs

tractLM.java:132)

at
org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.layoutFo oter(PDFP

ageLM.java:179)

at
org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.initiali ze(PDFPag

eLM.java:84)

at
org.eclipse.birt.report.engine.layout.pdf.PDFStackingLM.layo utChildre

n(PDFStackingLM.java:116)

at
org.eclipse.birt.report.engine.layout.pdf.PDFPageLM.layout(P DFPageLM.

java:212)

at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layou

tReport(PDFReportLayoutEngine.java:64)

at
org.eclipse.birt.report.engine.layout.pdf.PDFReportLayoutEng ine.layou

t(PDFReportLayoutEngine.java:87)

at
org.eclipse.birt.report.engine.api.impl.RenderTask$PageRange Render.re

nder(RenderTask.java:501)

at
org.eclipse.birt.report.engine.api.impl.RenderTask.render(Re nderTask.

java:254)

at
org.eclipse.birt.report.service.ReportEngineService.renderRe port(Unkn

own Source)

at
org.eclipse.birt.report.service.BirtViewerReportService.rend erReport(

Unknown Source)

at
org.eclipse.birt.report.service.actionhandler.BirtRenderRepo rtActionH

andler.__execute(Unknown Source)

at
org.eclipse.birt.report.service.actionhandler.AbstractBaseAc tionHandl

er.execute(Unknown Source)

at
org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragm

ent.doService(Unknown Source)

at
org.eclipse.birt.report.presentation.aggregation.layout.Fram esetFragm

ent.service(Unknown Source)

at org.eclipse.birt.report.servlet.ViewerServlet.__doGet(Unknow n
Source)



at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doGe

t(Unknown Source)

at
org.eclipse.birt.report.servlet.BirtSoapMessageDispatcherSer vlet.doPo

st(Unknown Source)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:710)

at
org.apache.axis.transport.http.AxisServletBase.service(AxisS ervletBas

e.java:327)

at javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

at
org.apache.catalina.core.ApplicationFilterChain.internalDoFi lter(Appl

icationFilterChain.java:290)

at
org.apache.catalina.core.ApplicationFilterChain.doFilter(App licationF

ilterChain.java:206)

at
org.apache.catalina.core.StandardWrapperValve.invoke(Standar dWrapperV

alve.java:233)

at
org.apache.catalina.core.StandardContextValve.invoke(Standar dContextV

alve.java:175)

at
org.apache.catalina.authenticator.AuthenticatorBase.invoke(A uthentica

torBase.java:433)

at
org.apache.catalina.core.StandardHostValve.invoke(StandardHo stValve.j

ava:128)

at
org.apache.catalina.valves.ErrorReportValve.invoke(ErrorRepo rtValve.j

ava:102)

at
org.apache.catalina.core.StandardEngineValve.invoke(Standard EngineVal

ve.java:109)

at
org.apache.catalina.connector.CoyoteAdapter.service(CoyoteAd apter.jav

a:263)

at
org.apache.coyote.ajp.AjpAprProcessor.process(AjpAprProcesso r.java:41

9)

at
org.apache.coyote.ajp.AjpAprProtocol$AjpConnectionHandler.pr ocess(Ajp

AprProtocol.java:394)

at
org.apache.tomcat.util.net.AprEndpoint$Worker.run(AprEndpoin t.java:15

08)

at java.lang.Thread.run(Unknown Source)
------------------------------------------------------------ --

When i print a test page in landscape format at the AdobePS printer this
page will be printed correctly in landscape format. But not these printed
from BIRT engine.

Which file meant in the exception?



Bye Tom
Re: Printing reports and the cancel button in progressbar [message #255271 is a reply to message #253671] Thu, 13 September 2007 09:42 Go to previous messageGo to next message
Tom Mising name is currently offline Tom Mising nameFriend
Messages: 29
Registered: July 2009
Junior Member
Hello,

i havent found my errors until now. So i disabled the "Printing on server"
function and only use "Printing as PDF".

Thanks for helping anyway.



Bye Tom
Re: Printing reports and the cancel button in progressbar [message #1194576 is a reply to message #255271] Mon, 18 November 2013 15:32 Go to previous message
Dinesh Srinivasan is currently offline Dinesh SrinivasanFriend
Messages: 1
Registered: November 2013
Junior Member
Hi Tom,

I could use your help. Could you please tell me how did you disable the "Print to Server" option on the birt reports?

Thank you so much for the help,

Dinesh
Previous Topic:Facing problem with Pojo Datasource in 4.3
Next Topic:Building BIRT viewer locally (4.3.x)
Goto Forum:
  


Current Time: Tue Mar 19 06:18:31 GMT 2024

Powered by FUDForum. Page generated in 0.02312 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top