print report from Label Printers

Stimulsoft Reports.WEB discussion
Post Reply
Chasoo
Posts: 40
Joined: Wed Oct 19, 2011 1:29 am

print report from Label Printers

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
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

print report from Label Printers

Post by HighAley »

Hello.
Chasoo wrote: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.)
Mrt-file is a report template, not the rendered report.
You can export a report to more than 20 formats: PDF, XPS, Excel, Word, HTML, RTF, XML etc.
We are considering the possibility of adding ZPL/EPL export now.

Thank you.
JockeD
Posts: 77
Joined: Fri Apr 17, 2009 1:47 pm
Location: Sweden

print report from Label Printers

Post by JockeD »

Aleksey wrote:We are considering the possibility of adding ZPL/EPL export now.
That function would be great to have!

/Joakim
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

print report from Label Printers

Post by Alex K. »

Hello,

Ok.
We let you know about the result.

Thank you.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

print report from Label Printers

Post by HighAley »

Hello.
JockeD wrote:
Aleksey wrote:We are considering the possibility of adding ZPL/EPL export now.
That function would be great to have!
We've discussed your wish with our team-leader.
At this moment this feature is little demand and we have more priority tasks.
Therefore he consider that it is inappropriate.

As a recommendation to solve your problem we can advise you to convert the report in your format after rendering report with this code:

Code: Select all

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

print report from Label Printers

Post by Chasoo »

Hello,

We can get the report elements in this way.bt how abt the report format ?

tnx
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

print report from Label Printers

Post by HighAley »

Hello.
Chasoo wrote:We can get the report elements in this way.bt how abt the report format ?
You can export this generated report to EPL/ZPL format.

Thank you.
Post Reply