Board index » delphi » ReportSmith: hiding print process!!!

ReportSmith: hiding print process!!!

 I wanted to print report using flwing code, it worked.

procedure TReport3Form.NewreportClick(Sender: TObject);
begin
  rptobject3.preview := True;
  rptobject3.reportname :='rpt1.rpt';
  rptobject3.run;
end;

  But every time I need to see the picture of reportsmith, then open
 rpt1.rpt from open file menu, then type in password. I want to know
if I can hardcode (hide) those process by coding in my program.
ie something like put 'c:\repmeint\...\rpt1.rpt ' in my program.

Thanks for any suggestion

Wei Jiang.

 

Re:ReportSmith: hiding print process!!!


sl...@cc.usu.edu tippte:

Quote
>  I wanted to print report using flwing code, it worked.
> procedure TReport3Form.NewreportClick(Sender: TObject);
> begin
>   rptobject3.preview := True;
>   rptobject3.reportname :='rpt1.rpt';
>   rptobject3.run;
> end;
>   But every time I need to see the picture of reportsmith, then open
>  rpt1.rpt from open file menu, then type in password. I want to know
> if I can hardcode (hide) those process by coding in my program.
> ie something like put 'c:\repmeint\...\rpt1.rpt ' in my program.

At first try "preview := FALSE" in the line above. This should print your
report at once.
Additionally you could try a report-variable which refers to a table.
I myself still have problems with RS as well, so my hints may be
obsolete.

              be seein' you,

                     Shadowhunter

=====================================================================
Keeper of  > E-Mail: shadowhun...@uni-muenster.de
1. German  > WWW: http://www.uni-muenster.de/WiWi/home/teschne
B 5 - FAQ  > including German B5-HTML-FAQ and updates for the iCard!

Other Threads