Disable Print Dialog

edited 7:53PM 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 7:53PM
    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 7:53PM
    Hi,

    Thanks a lot.

    It works.

Leave a Comment

Rich Text Editor. To edit a paragraph's style, hit tab to get to the paragraph menu. From there you will be able to pick one style. Nothing defaults to paragraph. An inline formatting menu will show up when you select text. Hit tab to get into that menu. Some elements, such as rich link embeds, images, loading indicators, and error messages may get inserted into the editor. You may navigate to these using the arrow keys inside of the editor and delete them with the delete or backspace key.