Last post May 08, 2018 09:41 AM by jayakumarchandrasekaran
May 03, 2018 01:13 PM|jayakumarchandrasekaran|LINK
I'm looking for a solution to run my crystal reports File is placed in network folder And I have to call the report and populate in ASP .net,C# Crystal reportviewer.
Please share the link,Ideas to achieve.
May 04, 2018 09:17 AM|Brando ZWZ|LINK
Could you please tell me more details about the network folder?In ftp folder or the share folder?
Could you please post the network folder file path?
If you could post more details information, it will be more easily for us to find the solution.
May 06, 2018 05:37 AM|cnranasinghe|LINK
Did you try like this
using System;using CrystalDecisions.CrystalReports.Engine;
// On the page load/Button click
ReportDocument reportDocument = new ReportDocument();
string networkPath = "\\Networkpath\\CrystalReport.rpt";
crystalReportViewer.ReportSource = reportDocument;
May 08, 2018 09:41 AM|jayakumarchandrasekaran|LINK
Dear Brando, Thanks for your reply I'm accessing from Network folder.
Dear Cnranasinghe, Thanks I acheived by using "Server.UrlPathEncode("\\Network path")".
Now I'm facing issue how to pass a values to Formula fields dynamically.
For Eg.: Imagine 2 reports are there Report A and Report B
Report A has 2 formula fields - X and Y
Report B has 2 formula fields - Y and Z
When running the report A, I'm passing the below piece of code
crReportDocument.DataDefinition.FormulaFields["X"].Text = "'"+x_Value+"'";
crReportDocument.DataDefinition.FormulaFields["Y"].Text = "'"+y_Value+"'";
When running the report B, I'm passing the below piece of code
crReportDocument.DataDefinition.FormulaFields["Z"].Text = "'"+z_Value+"'";
My question is
(1) Can we handle formula fields dynamically when running the report.
(2) Depends on the report The formula field has to dynamically select and pass to respective reports.