Home General
New Blog Posts: Merging Reports - Part 1 and Part 2

Unable to save to Archive file

edited September 2001 in General
I have serveral reports that I want the user to be able to save to an
archive file. When I select the print dialog with some reports I see the
archive file option, with others just Text. In the latter case I can see
the Archive file option in the print dialog.

Reportbuilder 5.6
AllowPrintToArchive is True


regards
Paul Sjoerdsma

Comments

  • edited September 2001
    Set the AllowPrintToFile property on the report after the template is
    loaded.


    Cheers,

    Jim Bennett
    Digital Metaphors


  • edited September 2001
    Jim,

    I do this already by using the following two methods, and still some of
    the reports do not allow me to print to an archive file.


    procedure Tfrm_Shared_ReportForm.FormCreate(Sender: TObject);
    begin
    FHasPrinted := False;
    ppr_SingleReport.Template.OnLoadEnd := Process_Template_LoadEnd_Event;
    end;{ Tfrm_Shared_ReportForm .FormCreate() }



    procedure Tfrm_Shared_ReportForm.Process_Template_LoadEnd_Event(Sender:
    TObject);
    begin
    ppr_SingleReport.AllowPrintToFile := True;
    end;{ Tfrm_Shared_ReportForm .Process_Template_LoadEnd_Event() }


    In article <8EAE82296ACCD311A039005004E0CAC00503ED@DMSERVER>,
    support@digital-metaphors.com says...
  • edited September 2001
    Typo: Report.AllowPrintToArchive should be true

    If you are calling Report.PrintToDevices, you can set
    Report.DeviceType = ArchiveFile.


    Cheers,

    Jim Bennett
    Digital Metaphors


This discussion has been closed.