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(); }
public void cetakfaktur() { InvoiceViewer iv = new InvoiceViewer(txt_salesNumber.Text); iv.ShowDialog(); }
private void Update_PDFViewer(object sender, SelectionChangedEventArgs e) { Console.WriteLine(ListViewInvoices.SelectedItem.ToString()); InvoiceViewer.Navigate(((DataInvoice)ListViewInvoices.SelectedItem).FilePath); }