ReportName

Stimulsoft Reports.WEB discussion
Post Reply
Brix
Posts: 14
Joined: Wed Jul 07, 2010 7:10 am
Location: Utrecht

ReportName

Post by Brix »

Hi there,

I'm still using the trial version but as of today we purchased the full version.
I'm trying to find the report name in the array.
But all the value says is: "Report".

Is there a way to alter this value directly by permitting a user to enter a name under which it should be saved.
I'm saving everything into a database, so I am not working with files or anything.

When I use the following

StiReport report = e.report;
ReportName = report.ReportName //Results in "Report"

Thank you
Jan
Posts: 1265
Joined: Thu Feb 19, 2009 8:19 am

ReportName

Post by Jan »

Hello,

Sorry i don't understand you request. Can you provide more details in which moment you want change ReportName?

Thank you.
Brix
Posts: 14
Joined: Wed Jul 07, 2010 7:10 am
Location: Utrecht

ReportName

Post by Brix »

I have this code for saving the data into the data base:

protected void SaveReport(object sender, Stimulsoft.Report.Web.StiWebDesigner.StiSaveReportEventArgs e)
{
StiReport report = e.Report;

String ReportId = Request.QueryString["reportId"];
String ReportName = report.ReportName; // This return "Report"

String query = "UPDATE DWReports SET " +
"ReportTemplate = @ReportTemplate, " +
"ReportName = @ReportName " +
"WHERE ReportId = @ReportId";

System.IO.MemoryStream stream = new System.IO.MemoryStream();
report.Save(stream);
byte[] arrImage = stream.GetBuffer();
SqlParameter[] parameters = {
new SqlParameter("@ReportTemplate", arrImage),
new SqlParameter("@ReportId", ReportId),
new SqlParameter("@ReportName", ReportName)
};
try
{
//Execution of Query
}
finally
{
stream.Close();
}
}

What i want is the possibillity to enter a user-defined name for ReportName.
The situation now is that alle the ReportName are named "Report"

Thank You
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

ReportName

Post by Vladimir »

Hello,

You can edit ReportName and ReportAlias here (please see the screenshot) and from code before design report.
Also you can use ReportFile and ReportGuid properties to determine the unique key for save the report.

Thank you.
Attachments
485.report.png
485.report.png (25.12 KiB) Viewed 2583 times
Brix
Posts: 14
Joined: Wed Jul 07, 2010 7:10 am
Location: Utrecht

ReportName

Post by Brix »

Thank you.

I was looking at the wrong section. that was the page :P
Andrew
Posts: 4108
Joined: Fri Jun 09, 2006 3:58 am

ReportName

Post by Andrew »

Ok!
Vladimir
Posts: 1462
Joined: Fri Apr 13, 2007 4:05 am
Location: Earth

ReportName

Post by Vladimir »

Let us know if you need any additional help.

Thank you.
Post Reply