Saving a report on the server
If you have sufficient permissions, of course, you can save a report by calling SaveAs method belonging to ReportClientDocument object:
//
//Saves report on RAS Server into adhoc folder.
// If third parameter is 1, it will overwrite exisiting report.
//
private void SaveReportOnServer(string newReportName)
{
object parentFolderPath;
parentFolderPath = "c:\\reports\\";
_reportClientDocument.SaveAs(newReportName, ref parentFolderPath , 1);
}
//
//
// If third parameter is 1, it will overwrite exisiting report.
//
private void SaveReportOnServer(string newReportName)
{
object parentFolderPath;
parentFolderPath = "c:\\reports\\";
_reportClientDocument.SaveAs(newReportName, ref parentFolderPath , 1);
}
0 Comments:
Post a Comment
<< Home