Disable Print Dialog

edited 1:24PM in FastReport .NET
Hi,

How do I disable print dialog while directly printing the report without preview?

Eg:

report.load(some name);
report.SetParameterValue(some parameter);
report.RegisterData(some data);
report.Print();
(Here I get the print setup dialog)

How do I disable it?

Comments

  • edited May 2011
    Hi,

    I also tried this.

    Report report = new Report();
    report.PrintSetting.ShowDialog = false;

    But it still shows the Print Settings.

    Thanks in advance.
  • edited 1:24PM
    Hi,

    I guess you should try this:
    Report report = new Report();
    report.Load(@"C:\SomeReport.frx");
    ...
    ...
    report.PrintSettings.ShowDialog = false;
    report.Print();
    

    or this:
    Report report = new Report();
    report.Load(@"C:\SomeReport.frx");
    ...
    ...
    report.PrintSettings.ShowDialog = false;
    report.Prepare();
    report.PrintPrepared();
    
  • edited 1:24PM
    Hi,

    Thanks a lot.

    It works.

Leave a Comment