Go Premium for a chance to win a PS4. Enter to Win

x
?
Solved

ReportSmith

Posted on 1997-05-12
3
Medium Priority
?
272 Views
Last Modified: 2010-04-06
I would like to create temporary files with Delphi that can then be used by ReportSmith.  How do I change the table that ReportSmith uses at runtime.  I have used the Delphi connection, however that only allows one table or query from Delphi.  Is there some way I can substitute the file that ReportSmith uses at runtime with a temporary file that is built by Delphi?

Thanks
Ian Hopewell
Hopewell and Associates
e-mail: ianah@iaccess.za
0
Comment
Question by:Ianah
  • 2
3 Comments
 
LVL 3

Accepted Solution

by:
hpierson earned 100 total points
ID: 1336182
Ian,

Being simple minded and the king of kludges, I would probably rename the original table to keepsafe.db, rename the temporary table to originaltable.db, run the report, rename the temporary table back to its old name, then rename keepsafe.db back to its original name..

Fortunately, the TTable componet does have a renametable method, so all this skulldugery will only take four lines of code...and since it all happens in Delphi, you can leave your report alone and avoid learning the macro language in Reportsmith!

Harry M. Pierson
DREJ Consulting
0
 

Author Comment

by:Ianah
ID: 1336183
I would like multiple users on the network to print this report.  If I rename my files there will be a clash with what other users are doing.  This report will be in a multi user environment. Any suggestion?
0
 
LVL 3

Expert Comment

by:hpierson
ID: 1336184
Suppose the table to be replace is

F:\somedirectory\realtable.db

copy the table to

c:\temp\realtable.db

Load the original report, and replace the table
F:\somedirectory\realtable.db with the table
c:\temp\realtable.db

in the reportsmith report, and save it under a different name, say
NEWREPRT.RPT

Now your users don't have to rename anything, the just have to copy or rename the table they want to use in any report to

c:\temp\realtable.db,

and since these tables will be local to each user, all common tables retain their original names and locations, and will be untouched.

I hope this is clear.

Harry M. Pierson
DREJ Consulting


0

Featured Post

Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Creating an auto free TStringList The TStringList is a basic and frequently used object in Delphi. On many occasions, you may want to create a temporary list, process some items in the list and be done with the list. In such cases, you have to…
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In response to a need for security and privacy, and to continue fostering an environment members can turn to for support, solutions, and education, Experts Exchange has created anonymous question capabilities. This new feature is available to our Pr…
Are you ready to place your question in front of subject-matter experts for more timely responses? With the release of Priority Question, Premium Members, Team Accounts and Qualified Experts can now identify the emergent level of their issue, signal…
Suggested Courses

927 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question