+1 800 256 3608 (toll-free in North America) or +49 7531 90 60 10| service@combit.com

Print label from Web Application

(Guest) #1

Hi All,
I am creating a web application(Asp.net) which is supposed to print label. I could not find any suitable example or documentation. (Only one example is web reporting). I can assume that printer would be network printer.(Connected to web server)

I have .lbl file created already and now I simply have to pass the variables to it. Something like,

LL.Variables.Add(“HOSTNAME”, “John”);

then want to call print(). Since the nature of the project, I want to suppress the print dialogue box as well as use the predefined .lbl file without showing dialogue box to select the file.

Does anybody have example demo which could implement the functionality I want.

(Guest) #2

“Hitesh” <hpatel@allstari…> schrieb im Newsbeitrag

Hi Hitesh,

Just a short mockup - I’d use an object as DataSource and make it hold the
data from the form. Then use the diverse options to enable quiet exporting.
Something along the lines of:

class Settings
public HOSTNAME {get; set;}

object dataSource = new Settings{HOSTNAME=“John”};
LL.DataSource = dataSource
LL.AutoProjectType = LlProject.Label;
LL.AutoDesignerFile = ;
LL.AutoShowSelectFile = false;
LL.AutoShowPrintOptions = false;

LL.ExportOptions.Add(LlExportOption.ExportTarget, “PDF”);
LL.ExportOptions.Add(LlExportOption.ExportPath, );
LL.ExportOptions.Add(LlExportOption.ExportFile, “report.pdf”);
LL.ExportOptions.Add(LlExportOption.ExportQuiet, “1”);