Parse report in to another printer language

Stimulsoft Reports.Flex discussion
Locked
Chasoo
Posts: 40
Joined: Wed Oct 19, 2011 1:29 am

Parse report in to another printer language

Post by Chasoo »

How do we parse report in to another printer language (Eg:ZPL,EPL,fingerprint etc).
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Parse report in to another printer language

Post 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.
Chasoo
Posts: 40
Joined: Wed Oct 19, 2011 1:29 am

Parse report in to another printer language

Post 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



Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

Parse report in to another printer language

Post 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.
Locked