Report Generator List & Label 12 - product information - combit GmbH

Report Generator List & Label 12 - product information - combit GmbH Report Generator List & Label 12 - product information - combit GmbH

08.01.2013 Views

10 All in One Dialog Printing and Franking Exporting and Signing “The tool is very powerful, so it should definitely be a basic element of current development environments.“ PC Magazin 10/2005 Output The Possibilities The examples on the right side show how easy it is to address the print engine. The possible output targets are: • Printer • Print Preview • Export A single parameter makes the difference. The rest is done by List & Label automatically. Easily added value for the end user in one single print dialog.Learn more about it on the following pages. Printing & Franking Optionally available is the exclusive access module for STAMPIT BUSINESS, the franking software of the Deutsche Post. Print stamped labels, envelopes or mailmerges with List & Label — all in one go. First of all you need to conclude the correspon ding cooperation agreement with Deutsche Post. Then you can access STAMPIT BUSINESS from List & Label, using the access module. Learn more at www.combit.net. Exporting & Signing Offer your customers the the option of digital signature — for that we have got together with the suppliers secrypt and e•siqia and now support their signatures straight out of the box. Basic requirement is, of course, an installation of either digiSeal® office of secrypt GmbH or OPENLiMiT® SignCubes software with license keys of e•siqia holding AG on the customer's PC. Generally, you can sign multi-TIFFs, text files and PDFs. Depending on the signature type, you receive one or several files. The signature format is changed by API. The receiver can always check whether something has been altered since the signature. For this, secrypt and e•siqia provide free products.

.NET private void button2_Click(object sender, System.EventArgs e) { try { // Bind to a DataSet object LL.SetDataBinding(myDataSet, "Orders"); // Set properties LL.AutoDesignerFile = "supreport.lst"; LL.AutoProjectType = LlProject.List; LL.AutoDialogTitle = "Example"; LL.AutoShowSelectFile = true; // Start print LL.Print(); } // Catch Exeptions catch (Exception LlException) { MessageBox.Show("Information: " + LlException.Message,"Information", MessageBox.IconInformation | MessageBox.OK); } } Delphi {Printing} procedure TForm1.PrintButtonClick(Sender: TObject); begin //Assign data source LL.DataSource := dsCustomers; //Pass customer data as fields LL.AutoMasterMode := mmAsFields; //Set the default project name LL.AutoDesignerFile := ‘subrep.lst’; //Switch print mode to preview LL.AutoDestination := adPreview; //Print LL.AutoPrint(‘Invoice List’, ‚); end; C++ Examples: Output //============================== void CMainFrame::DoLabelPrint() //============================== { // Define special fields, regular text field LlDefineVariableExt(job, "Text","Testtext", LL_TEXT, NULL); // Numeric field LlDefineVariableExt(job, "Subtotal", "12.34", LL_NUMERIC, NULL); // Barcode field LlDefineVariableExt(job, "BC_EAN_128", "123456789abcd", LL_BARCODE_EAN128, NULL); // Variable graphic by file name LlDefineVariableExt(job, "Graphic", "sunny.bmp", LL_DRAWING, NULL); // Start printing LlPrintWithBoxStart(job, LL_PROJECT_LABEL, szFile, LL_PRINT_EXPORT, LL_BOXTYPE_BRIDGEMETER, hWnd, "Printing..."); // Print label nErrorValue = LlPrint(job); // End printing LlPrintEnd(job,0); } Visual Basic Private Sub ButtonPrint_Click() 'Print the project "test.rpt" on the printer Data1.Recordset.MoveFirst ListLabel1.Print(0, LL_PROJECT_LIST, "test.lst",_True, LL_PRINT_NORMAL,_ LL_BOXTYPE_NORMALWAIT, hWnd,_ "Print, True, Environ$("temp")) End Sub Private Sub ListLabel1_ CmndDefineFields(ByVal nUserData As Long, ByVal bDummy As Long, nProgressInPerc As Long, pbLastRec As Long) 'This event is called by the commands 'Print and Design. It is called for each 'record to declare the fields and their 'contents to List & Label. 'Repeat for all fields of a record For i = 0 To Form1.Data1.Recordset.Fields.Count - 1 content$ = Data1.Recordset.Fields(i) nRet = ListLabel1.LlDefineFieldExt _ (Data1.Recordset.Fields(i).Name,_ content$, LL_TEXT) Next i 'Skip to next record Form1.Data1.Recordset.MoveNext 'Stop printing if last record is reached If Form1.Data1.Recordset.EOF = True Then pbLastRec = 1 End If End Sub 11

.NET<br />

private void button2_Click(object sender,<br />

System.EventArgs e)<br />

{<br />

try<br />

{<br />

// Bind to a DataSet object<br />

LL.SetDataBinding(myDataSet,<br />

"Orders");<br />

// Set properties<br />

LL.AutoDesignerFile = "supreport.lst";<br />

LL.AutoProjectType = LlProject.<strong>List</strong>;<br />

LL.AutoDialogTitle = "Example";<br />

LL.AutoShowSelectFile = true;<br />

// Start print<br />

LL.Print();<br />

}<br />

// Catch Exeptions<br />

catch (Exception LlException)<br />

{<br />

MessageBox.Show("Information: " +<br />

LlException.Message,"Information",<br />

MessageBox.IconInformation |<br />

MessageBox.OK);<br />

}<br />

}<br />

Delphi<br />

{Printing}<br />

procedure TForm1.PrintButtonClick(Sender:<br />

TObject);<br />

begin<br />

//Assign data source<br />

LL.DataSource := dsCustomers;<br />

//Pass customer data as fields<br />

LL.AutoMasterMode := mmAsFields;<br />

//Set the default project name<br />

LL.AutoDesignerFile := ‘subrep.lst’;<br />

//Switch print mode to preview<br />

LL.AutoDestination := adPreview;<br />

//Print<br />

LL.AutoPrint(‘Invoice <strong>List</strong>’, ‚);<br />

end;<br />

C++<br />

Examples: Output<br />

//==============================<br />

void CMainFrame::Do<strong>Label</strong>Print()<br />

//==============================<br />

{<br />

// Define special fields, regular text field<br />

LlDefineVariableExt(job, "Text","Testtext",<br />

LL_TEXT, NULL);<br />

// Numeric field<br />

LlDefineVariableExt(job, "Subtotal",<br />

"<strong>12</strong>.34", LL_NUMERIC, NULL);<br />

// Barcode field<br />

LlDefineVariableExt(job, "BC_EAN_<strong>12</strong>8",<br />

"<strong>12</strong>3456789abcd",<br />

LL_BARCODE_EAN<strong>12</strong>8, NULL);<br />

// Variable graphic by file name<br />

LlDefineVariableExt(job, "Graphic",<br />

"sunny.bmp", LL_DRAWING, NULL);<br />

// Start printing<br />

LlPrintWithBoxStart(job,<br />

LL_PROJECT_LABEL, szFile,<br />

LL_PRINT_EXPORT,<br />

LL_BOXTYPE_BRIDGEMETER, hWnd,<br />

"Printing...");<br />

// Print label<br />

nErrorValue = LlPrint(job);<br />

// End printing<br />

LlPrintEnd(job,0);<br />

}<br />

Visual Basic<br />

Private Sub ButtonPrint_Click()<br />

'Print the project "test.rpt" on the printer<br />

Data1.Recordset.MoveFirst<br />

<strong>List</strong><strong>Label</strong>1.Print(0, LL_PROJECT_LIST,<br />

"test.lst",_True, LL_PRINT_NORMAL,_<br />

LL_BOXTYPE_NORMALWAIT, hWnd,_<br />

"Print, True, Environ$("temp"))<br />

End Sub<br />

Private Sub <strong>List</strong><strong>Label</strong>1_<br />

CmndDefineFields(ByVal nUserData As<br />

Long, ByVal bDummy As Long,<br />

nProgressInPerc As Long, pbLastRec<br />

As Long)<br />

'This event is called by the commands<br />

'Print and Design. It is called for each<br />

'record to declare the fields and their<br />

'contents to <strong>List</strong> & <strong>Label</strong>.<br />

'Repeat for all fields of a record<br />

For i = 0 To<br />

Form1.Data1.Recordset.Fields.Count - 1<br />

content$ = Data1.Recordset.Fields(i)<br />

nRet = <strong>List</strong><strong>Label</strong>1.LlDefineFieldExt _<br />

(Data1.Recordset.Fields(i).Name,_<br />

content$, LL_TEXT)<br />

Next i<br />

'Skip to next record<br />

Form1.Data1.Recordset.MoveNext<br />

'Stop printing if last record is reached<br />

If Form1.Data1.Recordset.EOF = True<br />

Then<br />

pbLastRec = 1<br />

End If<br />

End Sub<br />

11

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!