Save a file opened in the designer
Save a file opened in the designer
Hello,
In a Web application built whith the ASP.NET technology, I have put a link to open an empty report designer.
Here, the user can open a file, edit it, but the save button do not work.
I know that it is possible to edit the OnSaveReport event and save it in a specific file.
But here, I want to save the same file which is opened by the user.
Can you tell me what can I do to make the save button work ?
Thanks for your help.
Regards
In a Web application built whith the ASP.NET technology, I have put a link to open an empty report designer.
Here, the user can open a file, edit it, but the save button do not work.
I know that it is possible to edit the OnSaveReport event and save it in a specific file.
But here, I want to save the same file which is opened by the user.
Can you tell me what can I do to make the save button work ?
Thanks for your help.
Regards
Re: Save a file opened in the designer
Hello,
You need to somehow identify the report on the server side. To do this, in the report saving event OnSaveReport you can use the properties of a report report.ReportName or report.ReportGuid, as well as report.ReportFile.
Thank you.
You need to somehow identify the report on the server side. To do this, in the report saving event OnSaveReport you can use the properties of a report report.ReportName or report.ReportGuid, as well as report.ReportFile.
Thank you.
Re: Save a file opened in the designer
Thanks for your reply.
The problem is that I do not know which file is opened.
The designer report component is opened without file loaded. The user must use the open file button.
So, when he saves his modifications, on the server side, we do not know the filename and its path.
The problem is that I do not know which file is opened.
The designer report component is opened without file loaded. The user must use the open file button.
So, when he saves his modifications, on the server side, we do not know the filename and its path.
Re: Save a file opened in the designer
Hello,
Please specify if we have not understood it correctly:
You want to open the report file in the WebDesigner from the local computer (using the Open menu) and when you save the report on the server side somehow determine which one report is opened?
Thank you.
Please specify if we have not understood it correctly:
You want to open the report file in the WebDesigner from the local computer (using the Open menu) and when you save the report on the server side somehow determine which one report is opened?
Thank you.
Re: Save a file opened in the designer
Yes that is right.
In the report saving event OnSaveReport, I pass the StiWebDesigner.StiSaveReportEventArgs parameter but there is no file information.
Have you any idea ?
In the report saving event OnSaveReport, I pass the StiWebDesigner.StiSaveReportEventArgs parameter but there is no file information.
Have you any idea ?
Re: Save a file opened in the designer
Hello,
Please check the following property in the OnSaveReport event:
e.Report.ReportFile
Its value will be the same as the name of the file that is open in the designer using the Open menu.
Thank you.
Please check the following property in the OnSaveReport event:
e.Report.ReportFile
Its value will be the same as the name of the file that is open in the designer using the Open menu.
Thank you.
Re: Save a file opened in the designer
Hello,
I have already checked this property. Its value is an empty string.
Thank you for the time you spent to help me.
I have already checked this property. Its value is an empty string.
Thank you for the time you spent to help me.
Re: Save a file opened in the designer
Hello,
We have reproduced the error. We will try to fix it for a new release 2013.2
Thank you.
We have reproduced the error. We will try to fix it for a new release 2013.2
Thank you.
Re: Save a file opened in the designer
Hello,
First, I want to thank you for your help and all your replies.
I have seen that the new release 2013.2 is available.
I have used it and I have tried to do my process again :
- In the code, I only load an empty Web Designer ( StiWebDesigner.Design(new StiReport()); ),
- With the browser, I go on the Asp.Net Web application. The Web Report Designer is well loaded.
- I use the menu to open a new report file (Open Report...)
- After modified it, I click on the Save Report button in the menu toolbar
- A "Saving Report" popup with a progress bar appears but nothing happen.
The same problem occurs : the file cannot be saved.
Can you tell me if I have forgotten to do something.
Thank you,
Jorys
First, I want to thank you for your help and all your replies.
I have seen that the new release 2013.2 is available.
I have used it and I have tried to do my process again :
- In the code, I only load an empty Web Designer ( StiWebDesigner.Design(new StiReport()); ),
- With the browser, I go on the Asp.Net Web application. The Web Report Designer is well loaded.
- I use the menu to open a new report file (Open Report...)
- After modified it, I click on the Save Report button in the menu toolbar
- A "Saving Report" popup with a progress bar appears but nothing happen.
The same problem occurs : the file cannot be saved.
Can you tell me if I have forgotten to do something.
Thank you,
Jorys
Re: Save a file opened in the designer
Hello,
Please show us the code of the OnSaveReport event of the Web report designer. And check whether it is called correctly?
We could not reproduce the error on the new 2013.2 version. The attached archive contains our test project.
Thank you.
Please show us the code of the OnSaveReport event of the Web report designer. And check whether it is called correctly?
We could not reproduce the error on the new 2013.2 version. The attached archive contains our test project.
Thank you.