4 Problems / Questions
-
- Posts: 39
- Joined: Tue Dec 20, 2011 8:07 am
- Location: Germany
4 Problems / Questions
And hello again,
Today I have 4 problems:
1. Encrypted Documents
I think i have discovered a bug in the viewer. I tried to save a report to a encrypted document with a password, but when i tried to open the document (with double-click) and typed in the password, I got an error-message, which told me, that the password is wrong (which was unlikely, because the password were '1234'), but when i tried to open it with the open viewer via the OpenFileDialog and typed in the password it worked.
2. Force/suggest a name, when saving
Is it possible, to force or suggest a name, when exporting or saving the report?
3. Problem with database
When i try to load a report, that receive its data from a sql-connection, i always get the error, that the connection to the server could not be established. When i try to open the report in the Designer and click on the preview, he shows the report properly. Any idea where might be the mistake?
4. MySQL-Queries
Is it possible to submit values, to specify the result of the report?
For example, when i have a table with dates, and i want the report only to show data from a specified date?
Regards and thanks for the great support,
mietzekotze
Today I have 4 problems:
1. Encrypted Documents
I think i have discovered a bug in the viewer. I tried to save a report to a encrypted document with a password, but when i tried to open the document (with double-click) and typed in the password, I got an error-message, which told me, that the password is wrong (which was unlikely, because the password were '1234'), but when i tried to open it with the open viewer via the OpenFileDialog and typed in the password it worked.
2. Force/suggest a name, when saving
Is it possible, to force or suggest a name, when exporting or saving the report?
3. Problem with database
When i try to load a report, that receive its data from a sql-connection, i always get the error, that the connection to the server could not be established. When i try to open the report in the Designer and click on the preview, he shows the report properly. Any idea where might be the mistake?
4. MySQL-Queries
Is it possible to submit values, to specify the result of the report?
For example, when i have a table with dates, and i want the report only to show data from a specified date?
Regards and thanks for the great support,
mietzekotze
4 Problems / Questions
Hello.
In the Designer you should set the 'Report Name' property in code before calling it.
If you want to change the name of a new report created in the Designer, you should subscribe on CreatingReportInDesigner event.
Thank you.
We reproduced this bug. And let you know when it will be fixed.mietzekotze wrote:1. Encrypted Documents
I think i have discovered a bug in the viewer. I tried to save a report to a encrypted document with a password, but when i tried to open the document (with double-click) and typed in the password, I got an error-message, which told me, that the password is wrong (which was unlikely, because the password were '1234'), but when i tried to open it with the open viewer via the OpenFileDialog and typed in the password it worked.
If you need to change file name when saving from the Viewer, you should set the 'Report Name' property of the report.mietzekotze wrote:2. Force/suggest a name, when saving
Is it possible, to force or suggest a name, when exporting or saving the report?
In the Designer you should set the 'Report Name' property in code before calling it.
If you want to change the name of a new report created in the Designer, you should subscribe on CreatingReportInDesigner event.
Please, describe more detailed how do you get this error. Maybe you could give us some code.mietzekotze wrote:3. Problem with database
When i try to load a report, that receive its data from a sql-connection, i always get the error, that the connection to the server could not be established. When i try to open the report in the Designer and click on the preview, he shows the report properly. Any idea where might be the mistake?
You could specify the date in variable and use it in the query. Also you could use a form. Please, describe your problem more detailed.mietzekotze wrote:4. MySQL-Queries
Is it possible to submit values, to specify the result of the report?
For example, when i have a table with dates, and i want the report only to show data from a specified date?
Thank you.
-
- Posts: 39
- Joined: Tue Dec 20, 2011 8:07 am
- Location: Germany
4 Problems / Questions
Since this is the most important problem, i'll start with this.Aleksey wrote:Please, describe more detailed how do you get this error. Maybe you could give us some code.mietzekotze wrote:3. Problem with database
When i try to load a report, that receive its data from a sql-connection, i always get the error, that the connection to the server could not be established. When i try to open the report in the Designer and click on the preview, he shows the report properly. Any idea where might be the mistake?
I run a xampp-server on my computer with a mysql-database. I tried to create a report, that gets its data from the server. When i design the report in the designer, everything works. I can establish a connection to the server and in the preview i see the data displayed. But if i try to open the report in my application, it can't establish a connection to the server. I'll attach my project, the report and a sql-file with the data.
Could you give a code-example? I tried to call Report.ReportName = "Example" at start of my application, but it didn't suggest this name, when trying to save.Aleksey wrote:If you need to change file name when saving from the Viewer, you should set the 'Report Name' property of the report.mietzekotze wrote: 2. Force/suggest a name, when saving
Is it possible, to force or suggest a name, when exporting or saving the report?
In the Designer you should set the 'Report Name' property in code before calling it.
If you want to change the name of a new report created in the Designer, you should subscribe on CreatingReportInDesigner event.
Aleksey wrote:You could specify the date in variable and use it in the query. Also you could use a form. Please, describe your problem more detailed.mietzekotze wrote: 4. MySQL-Queries
Is it possible to submit values, to specify the result of the report?
For example, when i have a table with dates, and i want the report only to show data from a specified date?
I think what i looked for, was the declaring of parameters in the Designer and assign them values with Report.Item("@customerid") = 1, but since the sql-queries doesn't work, i'll i have to wait.
- Attachments
-
- 1546.ReportViewer.zip
- (395.99 KiB) Downloaded 179 times
4 Problems / Questions
Hello.
We need more time to prepare an answer on your other questions.
Thank you.
We fixed this problem. Please check our next prerelease build tomorrow.1. Encrypted Documents
I think i have discovered a bug in the viewer. I tried to save a report to a encrypted document with a password, but when i tried to open the document (with double-click) and typed in the password, I got an error-message, which told me, that the password is wrong (which was unlikely, because the password were '1234'), but when i tried to open it with the open viewer via the OpenFileDialog and typed in the password it worked.
Please, try to set the 'Report Alias' property of the report.Could you give a code-example? I tried to call Report.ReportName = "Example" at start of my application, but it didn't suggest this name, when trying to save.
We need more time to prepare an answer on your other questions.
Thank you.
4 Problems / Questions
Hello.
Please, let us know if you still have any additional questions.
Thank you.
You should add next code after StiConfig.Restore()mietzekotze wrote:Since this is the most important problem, i'll start with this.Aleksey wrote:Please, describe more detailed how do you get this error. Maybe you could give us some code.mietzekotze wrote:3. Problem with database
When i try to load a report, that receive its data from a sql-connection, i always get the error, that the connection to the server could not be established. When i try to open the report in the Designer and click on the preview, he shows the report properly. Any idea where might be the mistake?
I run a xampp-server on my computer with a mysql-database. I tried to create a report, that gets its data from the server. When i design the report in the designer, everything works. I can establish a connection to the server and in the preview i see the data displayed. But if i try to open the report in my application, it can't establish a connection to the server. I'll attach my project, the report and a sql-file with the data.
Code: Select all
StiConfig.Services.Add(New Stimulsoft.Report.Dictionary.StiMySqlAdapterService())
StiConfig.Services.Add(New Stimulsoft.Report.Dictionary.StiMySqlDatabase())
Thank you.
-
- Posts: 39
- Joined: Tue Dec 20, 2011 8:07 am
- Location: Germany
4 Problems / Questions
Thank you. Worked for me. Another question: How can i set, that the viewer-component can open *.mrt-files? Because the default configuration is, that i only can open document-files.Aleksey wrote:Please, let us know if you still have any additional questions.
Regards
4 Problems / Questions
Hello.
Thank you.
Report templates (mrt-files) couldn't be opened in the Viewer. The Viewer can show only rendered reports.mietzekotze wrote:How can i set, that the viewer-component can open *.mrt-files? Because the default configuration is, that i only can open document-files.
Thank you.