473,387 Members | 1,502 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 software developers and data experts.

CrystalReportViewer - changing DBF file after the fact

A Crystal Reports report uses the old Clipper type of DBF format files
as input. In the C#.NET application the viewer is set up as follows:

CrystalDecisions.Windows.Forms.CrystalReportViewer type class

this.crystalReportViewer1.ReportSource = "C:\\path\\ReportName.rpt"

Everything works fine.

The next step is to change the location or name of the DBF format files
that the report uses as input at runtime.

The MSDN documentation suggests this should be done using LogOnInfo and
ConnectionInfo classes accessible within the CrystalReportViewer. When
I read and print the members of these objects in a report that displays
fine, they are empty. When I set these objects to override the report
settings, nothing happens.

What am I doing wrong? What should I be doing instead?

Jul 22 '05 #1
0 1176

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: Jordan | last post by:
Hi, I've declared the statement below in my form and somehow crystalReportViewer1 is always null. Is there anything wrong with the statement? private...
0
by: Shannon Cayze | last post by:
Hello all, I'm having trouble using a CrystalReportViewer when I set the ReportSource property to a file on another server. When I do this, I get a "Load report failed" exception. I've learned...
3
by: Reza Nabi | last post by:
Hello I created a very simple page just to load a crystal report which was working just great Code started throwing the following exception, after I installed crystal report 9 advanced edition ...
4
by: Stan Sainte-Rose | last post by:
Hi, How to capture the CrystalReportViewer Events. I need to do some actions when the user clicks on the close and print icons. By the way, I thank you for your contributions... Stan
1
by: Bob | last post by:
I'm asking here because I've posted this question in the crystal newsgroup, waited two weeks, and got zero response. I would be very appreciative if someone could shed some light on this problem...
0
by: caincognito | last post by:
A Crystal Reports report uses the old Clipper type of DBF format files as input. In the C#.NET application the viewer is set up as follows: CrystalDecisions.Windows.Forms.CrystalReportViewer...
1
by: Gerhard | last post by:
I am using a CrystalReportViewer to view a CrystalReport. The report calls a stored procedure with one parameter. I am using .net version 2. Two questions. How do I set the parameter...
3
by: roopsd | last post by:
I am using VS.NET 2003 with crystal reports XI release 2. I get a runtime error at the following line: oRptForm.crystalReportViewer.ReportSource = oReport An unhandled exception of type...
0
by: roopsd | last post by:
Hi Thank you for yuour help. I am using VS.NET 2003 with Crystal XI r2. I am getting NullReferenceException at the following line in my code. oRptForm.crystalReportViewer.ReportSource =...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.