using System.Xml; using System.Xml.Serialization; using combit.Reporting; using combit.Reporting.DataProviders; void ButtonVorschauClick(object sender, EventArgs e) { combit.Reporting.ListLabel listLabel = new ListLabel(); listLabel.LicensingInfo = "xxxxx"; System.Xml.XPath.XPathDocument myDoc = new System.Xml.XPath.XPathDocument(@"Reports\Resturlaub.xml"); XmlDataProvider xmlProvider = new XmlDataProvider(myDoc); listLabel.DataSource = xmlProvider; listLabel.AutoProjectFile = @"Reports\Resturlaub.lst"; listLabel.AutoDesignerPreview = true; listLabel.AutoDestination = LlPrintMode.Preview; listLabel.AutoShowPrintOptions = false; listLabel.AutoShowSelectFile = false; try { listLabel.Print(); } catch(Exception ex) { MessageBox.Show(ex.Message); } }