combit List & Label 24 - .NET Online Web Help
Network Printing
Programming Introduction > Examples > General > Network Printing

When printing in the network, keep the following two points in mind:

using (ListLabel LL = new ListLabel())
{
    // Define/Assign data source
    LL.DataSource = CreateDataSet();

    // Set local temporary path
    LL.Core.LlPreviewSetTempPath(Path.GetTempPath());

    // Printer settings should be created in user-specific sub directory
    // so changes will be stored permanently
    LL.Core.LlSetPrinterDefaultsDir("<Path>");

    // Print
    LL.Print();
}
Using LL As New ListLabel()
    ' Define/Assign data source
    LL.DataSource = CreateDataSet()

    ' Set local temporary path
    LL.Core.LlPreviewSetTempPath(Path.GetTempPath())

    ' Printer settings should be created in user-specific sub directory
    ' so changes will be stored permanently
    LL.Core.LlSetPrinterDefaultsDir("<Path>")

    ' Print
    LL.Print()
End Using

Using the stream overloads of the Print and Design methods is an alternative here. These, for example, "automatically” take care of storing the printer settings in the passed stream. Hints as well as an example can be found in section Store Project Files in a Database.