Board index » delphi » Getting rid of ReportSmith login prompt

Getting rid of ReportSmith login prompt

Someone please help!

How do I get rid of the ReportSmith login prompt when running a
report from inside Delphi.

I am using Interbase as the database and have tried everything in the
manuals. Nothing seems to work.

The Connect method of the TReport component pre-connects the
database, but ReportSmith connects for a second time anyway.

Any suggestions welcome

Thanks

GERT

 

Re:Getting rid of ReportSmith login prompt


In article <30C74D20.3...@iafrica.com> Gert Rautenbach <ge...@iafrica.com>  
writes:
Quote
> Someone please help!

> How do I get rid of the ReportSmith login prompt when running a
> report from inside Delphi.

> I am using Interbase as the database and have tried everything in the
> manuals. Nothing seems to work.

> The Connect method of the TReport component pre-connects the
> database, but ReportSmith connects for a second time anyway.

> Any suggestions welcome

> Thanks

> GERT

Getting rid of the ReportSmith login prompt it's not that easy.

It seems You must send the Ascii code for each letter of the password.  I  
know that it's very bizzarre but it's work fine for me.

Here's a exemple of calling a report via a delphi application using a  
TReport component.  The example sends the password "tiger" to the report.  

Report1.reportname := ... ;
PostMessage(Report1.ReportHandle,WM_CHAR,84,1)
                     {84 is the ASCII code for the letter `T'}
PostMessage(Report1.ReportHandle,WM_CHAR,73,1)
                     {73 is the ASCII code for the letter `I'}
PostMessage(Report1.ReportHandle,WM_CHAR,71,1)
                     {71 is the ASCII code for the letter `G'}
PostMessage(Report1.ReportHandle,WM_CHAR,69,1)
                     {69 is the ASCII code for the letter `E'}
PostMessage(Report1.ReportHandle,WM_CHAR,82,1)
                     {82 is the ASCII code for the letter `R'}
PostMessage(Report1.ReportHandle,WM_CHAR,13,1)
                     {13 is the ASCII code for [enter]}
Report1.connect(...);
Report1.Run;

I hope this helps you.

Richard Pineault
(r...@logibec.com)

Re:Getting rid of ReportSmith login prompt


In your reply to article <30C74D20.3...@iafrica.com> Gert Rautenbach
<ge...@iafrica.com>,

Quote
you wrote:
>It seems You must send the Ascii code for each letter of the password.  I  
>know that it's very bizzarre but it's work fine for me.

I tried your suggestion to connect the demo MASTAPP's custsql.rpt as
below.
But it does not work. Could it be wrong in my connect statement?
I put MASTSQL and IBLOCAL as second parameter, both didn't work.
The get connection dialog still comes out.

Report1.reportname := 'custsql.rpt';
PostMessage(Report1.ReportHandle,WM_CHAR,109,1); { 'm' }
PostMessage(Report1.ReportHandle,WM_CHAR,97,1);  { 'a' }
PostMessage(Report1.ReportHandle,WM_CHAR,115,1); { 's' }
PostMessage(Report1.ReportHandle,WM_CHAR,116,1); { 't' }
PostMessage(Report1.ReportHandle,WM_CHAR,101,1); { 'e' }
PostMessage(Report1.ReportHandle,WM_CHAR,114,1); { 'r' }
PostMessage(Report1.ReportHandle,WM_CHAR,107,1); { 'k' }
PostMessage(Report1.ReportHandle,WM_CHAR,101,1); { 'e' }
PostMessage(Report1.ReportHandle,WM_CHAR,121,1); { 'y' }
PostMessage(Report1.ReportHandle,WM_CHAR,13,1);  { Enter }
Report1.connect( 67, 'MASTSQL', 'SYSDBA', 'masterkey',
                 'c:\delphi\demos\data\mastsql.gdb');
Report1.Run;

Please help if you can. Thank you.

Re:Getting rid of ReportSmith login prompt


Gert, Try this Method.

DELPHI TIP: HOW TO SQUELCH THE REPORTSMITH RUN-TIME LOGO

If you have ever wanted to squelch that RS_RUNTIME logo, then say
thanks to Mickey Mall who passed along this tip.  Look for the file
RS_RUN.INI, which should be in your WINDOWS directory.  Near the bottom
of that file you should find a section entitled "[RS_Runtime]".  Add
the following statement to that section:

   ShowAboutBox=0

Huet Bartels.

Other Threads