on 04-13-2009 8:44 AM
Hi,
This is the first time i am calling the crystal report(Version 9.2 or Crystal Report 2008 any version is ok) that has stored Procedure through C#.net. While setting the DBLOGON i am getting "The table could not found" error. Would it possible tosend some peace of code ?
The Code iam using to set the log on information.
htConnectionInfo = ParseConnectionString(objBaseDAL._oracleConnection);
ConnectionInfo connectionInfo = new ConnectionInfo();
connectionInfo.ServerName = htConnectionInfo["SERVERNAME"].ToString();
connectionInfo.DatabaseName = "";
connectionInfo.UserID = htConnectionInfo["USERID"].ToString();
ConnectionInfo.Password = htConnectionInfo["PASSWORD"].ToString();
Tables tables = reportDocument.Database.Tables;
foreach (CrystalDecisions.CrystalReports.Engine.Table table in tables)
{
tableLogonInfo = table.LogOnInfo;
tableLogonInfo.ConnectionInfo = connectionInfo;
_ table.ApplyLogOnInfo(tableLogonInfo);_
* table.Location = tableLogonInfo.TableName; -
}
table.Location i am getting the error that "The table could not found".
There is a huge number of threads in these forums on the code you will need to use. Please search the forums and I suspect you will find an answer. Also, see the following resources:
http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_dg_12_en.chm
http://help.sap.com/businessobject/product_guides/boexir31/en/crsdk_net_apiRef_12_en.chm
https://smpdl.sap-ag.de/~sapidp/012002523100006252722008E/csharp_win_smpl.exe
https://www.sdn.sap.com/irj/boc/businessobjects-samples?rid=/webcontent/uuid/80774579-b086-2b10-db91... [original link is broken]
https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
Ludek
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Try these:
[Business Objects Developer Library|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/devsuite.htm]
[Developer Library|https://www.sdn.sap.com/irj/boc/sdklibrary]
[crsdkt net tutorials cr115|http://devlibrary.businessobjects.com/BusinessObjectsXIR2SP2/en/en/CrystalReports_dotNET_SDK/crsdk_samples_aspx/data/crsdk_net_tutorials_115_en.zip]
Sample application downloads:
https://smpdl.sap-ag.de/~sapidp/012002523100006252822008E/net_win_smpl.exe
https://smpdl.sap-ag.de/~sapidp/012002523100006252722008E/csharp_win_smpl.exe
https://smpdl.sap-ag.de/~sapidp/012002523100006252712008E/csharp_web_smpl.exe
https://smpdl.sap-ag.de/~sapidp/012002523100006252812008E/net_web_smpl.exe
More sample links in [this|https://wiki.sdn.sap.com/wiki/display/BOBJ/CrystalReportsfor.NETSDK+Samples] wiki.
There really are many threads and posts on parameters in these forums. Typing in 'parameter" in the search, I get over 7 pages of links(!). See if searching these you find anything of interest. Additionally the [notes|https://www.sdn.sap.com/irj/scn/advancedsearch?cat=sdn_ossnotes&query=&adv=true] database and [articles|https://www.sdn.sap.com/irj/sdn/businessobjects-articles]
Ludek
OK, so you are using RAS. That being the case, the query should have been posted to the .NET Development - BusinessObjects Enterprise, BusinessObjects Edge, Crystal Reports Server forum. Searching that forum should provide quite a bit of help on RAS. Also see the article [How to use the RAS SDK .NET with In-process RAS Server|https://www.sdn.sap.com/irj/boc/index?rid=/library/uuid/10b840c0-623f-2b10-03b5-9d1913866b32&overridelayout=true].
[Programming the RAS Insight 2007|https://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/b050afe0-2fa5-2b10-658d-98f214ba6a4a]
[Developer Library|https://www.sdn.sap.com/irj/boc/sdklibrary]
[This|https://wiki.sdn.sap.com/wiki/display/BOBJ/NETRASSDK+Samples] wiki provides links to RAS sample and may be of help in the future.
Ludek
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.