Пример #1
0
        public void SetData(POS arg)
        {
            string exeFolder = Path.GetDirectoryName(Application.StartupPath);
            // string reportPath = Path.Combine(exeFolder, @"Reports\Invoice.rdlc");
            // string reportPath = @"D:\Official Work\Webtronix\PointOfSale\PointOfSale\Reports\Invoice.rdlc"; //for local
            string reportPath = Properties.Settings.Default.ReportsFolder + @"\Invoice.rdlc";
            POS    ds         = arg;

            InvoiceViewer.ProcessingMode         = ProcessingMode.Local;
            InvoiceViewer.LocalReport.ReportPath = reportPath;
            ReportDataSource datasourcePersonal = new ReportDataSource("POS", ds.Tables[0]);

            InvoiceViewer.LocalReport.DataSources.Clear();
            InvoiceViewer.LocalReport.DataSources.Add(datasourcePersonal);
            InvoiceViewer.RefreshReport();
        }
Пример #2
0
        public void cetakfaktur()
        {
            InvoiceViewer iv = new InvoiceViewer(txt_salesNumber.Text);

            iv.ShowDialog();
        }
Пример #3
0
 private void Update_PDFViewer(object sender, SelectionChangedEventArgs e)
 {
     Console.WriteLine(ListViewInvoices.SelectedItem.ToString());
     InvoiceViewer.Navigate(((DataInvoice)ListViewInvoices.SelectedItem).FilePath);
 }