How to print Fastreport directly without showing any Dialog in my Application?

3.2k views Asked by At
fsReport.RegisterData(ds);
for (int i = 0; i < ds.Tables.Count; i++) {
  if (fsReport.GetDataSource(ds.Tables[i].TableName) != null) {
    fsReport.GetDataSource(ds.Tables[i].TableName).Enabled = True;
  }
}
fsReport.PrintSettings.Printer = PrinterNameForPrintAtumatice;
fsReport.PrintSettings.ShowDialog = false;

if (fsReport.Prepare()) {
  fsReport.Print();
}

this code show Access Data Dialog, how To solve this? Do not Show Any Dialog? Access Data Dialog In my System show. Please Help

1

There are 1 answers

0
Grzegorz Brzęczyszczykiewicz On BEST ANSWER

Try this:

FastReport.Utils.Config.ReportSettings.ShowProgress = false;