During certain conditions , arises the need to allow the possibility of exporting into certain formats from preview . How can this be done ?
Question: During certain conditions , arises the need to allow the possibility of exporting into certain formats from preview . How can this be done ?
Answer:
Dynamically create the needed filter before preview :
1 2 3 4 5 6 7 |
var frxRTFExport1:TfrxRTFExport; begin frxRTFExport1:=TfrxRTFExport.Create(Form1); frxReport1.PreviewOptions.Buttons:=frxReport1.PreviewOptions.Buttons+[pbExport]; frxReport1.ShowReport(); frxRTFExport1.Free; end; |