Internosis - knowledge management,ecommerce and project consulting
*Home>>>Application Development

Changing the server name & database name of a crystal report through front end?


Development Environment :

OS : Window 2000
Development Tool : VB 6.0
Backend : SQL Server 2000
Reporting Tool : Crystal Report Version 8.5
Using Active X Control Version

I developed application in VB 6.0 with Backend SQL Server 2000,
Report is Develop in Crystal Report 8.5 with approach putting Active X Control on Main MDI Form to generate report through assign properties of Crystal Report, Connection use OLEDB SQL Server

Problem : I develop any of the report at my office work fine, but when I shipped at customer place it will generate error SQL Server not found because there is different Sever Name at customer Site so how do I set the data source (OLEDB Connection, Tables Location) Programmatically

I do set properties of crystal report as below

MDIForm.oCrystalReport.ReportFileName = ListReportFileName.rpt
MDIForm.oCrystalReport.Connect = ConnectString
MDIForm.oCrystalReport.Action = 1

Note : here connect string I dynamically changed through global var as p

Just modify the connectstring and reset the control to the new string, then open it up. Same with the report file. You can load reports into the control just by changing the report parameter. In the worst case scenario you can always create a new control, configure and replace the old one.

Tags
  E-Commerce   Supply Chain   Data Mining   ERP   CRM   Application Development   Software Consulting   Software Development   Information Technology   Technology Consulting   Project Training
Related information
  • Why use XML?

    For data that doesn't need to be secure, it's a low-processing, and easily accessible method. RSS feeds are XML, and wouldn't work as data in a database, because people would need...

  • To who does the source code belong?

    I'm going to echo what other have said about needing more details. In general, if you were paid an engineering rate (i.e. 50-100K/year) then they own the source code. Same if you billed th...

  • Planning Issue can anyone help ?

    In England we have a plan-led planning system, if that makes sense. So, a local plan is drawn up, which the local authority 'adopts' and then individual applications are supposed to contr...

  • Please provide me the address of union finance minister to lodge a complaint againt the harassment i went thro

    1.Write to their regional office and get their reply. 2. Even after writing to them, and if you are not satisfied, then write to: Shri Amitabh Verma, joint secy, banking, department of public g...

  • Carrier selection guidance?

    why

    ...
  • Can you help me write a resume letter for this position and any other document for this post, pls?

    The attached links give you free resume and free cover letter samples.

    ...
  • I have mailed nuffic.nl and did not receive reply for two weeks now.Why?

    they are slow replying or a server it landed on went down and hast been delivered yet but you will get it as i have had this same problem before

    ...
  • In the oject oriented programming what is reusable classes and packages the function and the uses?

    the answer to your question requires hundreds of pages so you need to read a whole book on OOP. one of the best is *C++ How to programme By Dietel & Dietel or the same version with Java

  •  

    Categories--Copyright/IP Policy--Contact Webmaster