Page 1 of 1

print report from Label Printers

Posted: Fri Oct 21, 2011 12:00 am
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

print report from Label Printers

Posted: Fri Oct 21, 2011 4:27 am
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.

print report from Label Printers

Posted: Sat Oct 22, 2011 8:22 am
by JockeD
Aleksey wrote:We are considering the possibility of adding ZPL/EPL export now.
That function would be great to have!

/Joakim

print report from Label Printers

Posted: Mon Oct 24, 2011 6:25 am
by Alex K.
Hello,

Ok.
We let you know about the result.

Thank you.

print report from Label Printers

Posted: Mon Oct 24, 2011 7:05 am
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.

print report from Label Printers

Posted: Thu Oct 27, 2011 3:57 am
by Chasoo
Hello,

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

tnx

print report from Label Printers

Posted: Fri Oct 28, 2011 7:55 am
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.