Page 1 of 1

Parse report in to another printer language

Posted: Wed Oct 19, 2011 2:38 am
by Chasoo
How do we parse report in to another printer language (Eg:ZPL,EPL,fingerprint etc).

Parse report in to another printer language

Posted: Wed Oct 19, 2011 7:49 am
by HighAley
Hello.
Chasoo wrote:How do we parse report in to another printer language (Eg:ZPL,EPL,fingerprint etc).
Sorry, maybe we did not exactly understand your question. Could you explain your issue in more details?

Thank you.

Parse report in to another printer language

Posted: Wed Oct 19, 2011 1:07 pm
by Chasoo
we are planing to do our new project using Reports Designer.Web. But the prob is client want to Create dynamic reports for label printing.And they wanna parse these reports in to another printer languages such as ZPL/EPL and Intermec FingerPrint. is there a anyway we can parse report data and formatting objects(font size,family,Text align) in to a readable format. other than deserializing .mrt xml file.(looking for a some kind of a export or something which u have done for dotmetrix printers.)

tnx in advanced




Parse report in to another printer language

Posted: Sun Oct 23, 2011 11:50 pm
by Andrew
Hello,

We have discussed the issue with the team-leader.
I regret to say that, at this moment, this feature is very rarely requested, and we have tasks of a higher priority. Sorry.

As a recommendation for solving the problem, you can convert your report format you need immediately after rendering a report with the following code, for example:


StiReport rep = new StiReport();
rep.Load(@"d:\report.mrt");
rep.Render();

foreach (StiPage page in rep.RenderedPages)
{
//store page info
// .....
foreach (StiComponent comp in page.Components)
{
if (comp is StiText)
{
StiText text = comp as StiText;
//store text line
// .....
}
if (comp is StiImage)
{
StiImage image = comp as StiImage;
//store image
// .....
}
// store other component
// .....
}
}

Thank you.