cancel
Showing results for 
Search instead for 
Did you mean: 

EPL printing with .net sdk

Former Member
0 Kudos

We had a crystal report integration for EPL base label printing which is implemented from VB6. We migrated it to .net and now one report is working butnot others. When we check the working report only different we found is that font of text object is set as "Device Font 10cpi". I checked even with a simple application with hard coded values it only works with the one which has set the font. But when i print with CR designer it works. What couble be he reason

I could not find ant way to set that font from CR designer. Any idea how to set that

Sample code

var reportDocument = new ReportDocument();

reportDocument.Load(_reportFilePath);

var viewer = new CrystalReportViewer { ReportSource = reportDocument };

viewer.RefreshReport();

viewer.PrintReport();

following is the  EPL script

I8,1,046

q400

S3

OD,N

JF

j112

WN

D10

ZB

Q240,32

N

B24,6,0,1,2,5,72,N,"Test"

A10,100,0,2,1,2,N,"Test"

A10,140,0,2,1,1,N,"Test"

A10,160,0,2,1,1,N,"Test"

A10,200,0,2,1,1,N,"Test"

A10,220,0,2,1,1,N,"Test"

A390,16,1,1,1,1,N,"Test"

A365,16,1,1,1,1,N,"Test"

A340,16,1,1,1,1,N,"Test"

A315,16,1,1,1,1,N,"Test"

P1

N

Printer we are using is Zebra - GT800

Accepted Solutions (1)

Accepted Solutions (1)

0 Kudos

Search for KBA 2163438 and download and test using my test app.

Don

Former Member
0 Kudos

This works

CrystalDecisions.ReportAppServer.ClientDoc.ISCDReportClientDocument doc = _reportDocument.ReportClientDocument;  

           try
            {
                doc.PrintOutputController.PrintReport();
            }
           catch (COMException ex)
            {
                Log.Debug("Cancelled!");
            }

Answers (0)