RE: Switching DB's

"Andre Mens" <[email protected]> Wed, 30 Jul 2003 11:56:40 +0200
Newsgroups gmane.comp.lang.delphi.quick-reports
Message-ID <[email protected]>
The best way of doing things is this


Create a ALIAS with a name like this. DEVELOP


In you app create a main datamodule with a Tdatabase component named DEVELOP
(watch this name is exactly the same as you ALIAS name in the BDE)

Next in your app use this TDatabase component to connect to the real database

In your reports also use this alias to develop against.

Now swith Alias on the TDSatabase component on the main datamodule and you see
all will switch including the QREport reports.

Greetings Andre Mens
[email protected]
Qreport Artist author www.mensand.com
 


-----Original Message-----
From: Charlie [mailto:[email protected]] 
Sent: woensdag 30 juli 2003 11:50
To: [email protected]

Hi Joe,
How are you "switching" the DBs?
Can you show us a bit of code as to what you are doing?

Charlie
  ----- Original Message -----
  From: Joe Strange
  To: [email protected]
  Sent: Wednesday, July 30, 2003 1:51 AM
  Subject: [quick-reports] Switching DB's


  I'm a relative newcomer to Quick Reports, so this question may seem
  trivial to some.  Please bear with me.



  My application needs to toggle from a Test DB to a Live DB.  It does
  that just fine with all features operating nicely except my QRpts.  They
  all act as if they are no longer attached to their data sources.
  Looking at them with the Object Inspector, they appear all connected and
  ready to go, yet they do not load data from either DB in runtime.



  Can anyone provide a bit of insight?  Thanks in advance



  --Joe Strange 



  [Non-text portions of this message have been removed]


        Yahoo! Groups Sponsor 
              ADVERTISEMENT
             
       
       

  =============================================
  QReport Artist 5 - http://www.mensand.com/
  The new version is available for Delphi 5.0 ,
  Delphi 4.0 and Delphi 3, BC++Builder 3.0. and BC++Builder 4.0
  ============================================= 

  Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service. 


[Non-text portions of this message have been removed]


------------------------ Yahoo! Groups Sponsor ---------------------~--> Free
shipping on all inkjet cartridge & refill kit orders to US & Canada. Low prices
up to 80% off. We have your brand: HP, Epson, Lexmark & more.
http://www.c1tracking.com/l.asp?cid=5510
http://us.click.yahoo.com/GHXcIA/n.WGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

=============================================
QReport Artist 5 - http://www.mensand.com/ The new version is available for
Delphi 5.0 , Delphi 4.0 and Delphi 3, BC++Builder 3.0. and BC++Builder 4.0
============================================= 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/ 




------------------------ Yahoo! Groups Sponsor ---------------------~-->
Buy Ink Cartridges or Refill Kits for Your HP, Epson, Canon or Lexmark
Printer at Myinks.com. Free s/h on orders $50 or more to the US & Canada. http://www.c1tracking.com/l.asp?cid=5511
http://us.click.yahoo.com/sO0ANB/LIdGAA/ySSFAA/i7folB/TM
---------------------------------------------------------------------~->

=============================================
QReport Artist 5 - http://www.mensand.com/
The new version is available for Delphi 5.0 ,
Delphi 4.0 and Delphi 3, BC++Builder 3.0. and BC++Builder 4.0 
============================================= 

Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/