Question : Dynamically Change .XSD File Location in Crystal Reports Using ASP.NET 2.0

I have the same problem,mention in below link:

http://forums.asp.net/p/1312666/2588463.aspx

I have created the crystal report with xsd and through code I set the dataset to the report ( setdatasource())

My report at C:\folder\x.rpt

xsd at c:\folder\z.xsd
 

It works fine, but when I put this both file at some another place.

Suppose I put it at

d:\folder\x.rpt

d:\folder\z.xsd
 

it doesn’t work, it give me

rowset error c:\Documnet…\Temp\{23435466grh76u}.rpt. Invail argument
 

I tried to set the CrystalViewer.ReportSourcepath = “d:\folder\z.xsd“. it give me same error.
 

but when put the only z.xsd to its original place (c:\folder\z.xsd) report works.
 

I like to change the z.xsd path at runtime. How can I do that.


It's Urgent, in Production....
 

Thanks

Answer : Dynamically Change .XSD File Location in Crystal Reports Using ASP.NET 2.0

What code are you using?

It might be easier to pass a recordset to the report
http://www.emoreau.com/Entries/Articles/2006/09/Feeding-Crystal-Reports-from-your-application.aspx

mlmcc
Random Solutions  
 
programming4us programming4us