how to load a crystal report dynamically if the application is configured in the server? [Resolved]

Posted by Rajendra.prasad under C# on 7/7/2010 | Views : 6957 | Status : [Member] | Replies : 2
Hi All,

how to load a crystal report dynamically if the application is configured in the server? like no need of hard coding its physical path. need to load the report dynamically at runtime using it file path automatically.

Regards,
Rajendra
rajendra.bharatha@gmail.com




Responses

Posted by: Rajendra.prasad on: 7/10/2010 [Member] Starter

Up
0
Down

Resolved
Hi All,
loading crystal report dynamically @ runtime without hard coding da report's physical path from the solution explorer.

need to create a report under sub-folder called "Reports" as recommended or industry standards.

string strPath = System.Windows.Forms.Application.StartupPath.Substring
(0,System.Windows.Forms.Application.StartupPath.Substring
(0, System.Windows.Forms.Application.StartupPath.LastIndexOf("\\")).LastIndexOf("\\"));
strPath += @"\Reports\CFAReport.rpt";
rd.Load(strPath);

Regards,
Rajendra

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Posted by: BangaruBabu on: 7/7/2010 [Member] Starter

Up
0
Down
http://www.dotnetspider.com/resources/19832-Load-Crystal-Reports-from-File.aspx

BangaruBabu Pureti
http://bangarubabupureti.spaces.live.com/

Rajendra.prasad, if this helps please login to Mark As Answer. | Alert Moderator

Login to post response