report.render(true) issue

Stimulsoft Reports.NET discussion
mmurdock
Posts: 94
Joined: Tue Mar 20, 2007 4:59 pm

report.render(true) issue

Post by mmurdock »

I have been using the code below for sometime to render a report, however after updating to 2008.1 I get the following error on my report.render(true) line:
error BC30516: Overload resolution failed because no accessible 'New' accepts this number of arguments.
Any help would be appreciated.

Thanks,

Mat

Code: Select all

Dim report As New Stimulsoft.Report.StiReport()
Report.LoadFromString(strTemplate)

report.Render(True)

Using form As Stimulsoft.Report.Render.StiPreviewForm = New Stimulsoft.Report.Render.StiPreviewForm(report)

form.PreviewControl.ShowBookmarksPanel = False
form.PreviewControl.ShowDotMatrixModeButton = False
form.PreviewControl.ShowSave = False
form.PreviewControl.ShowOpen = False
form.PreviewControl.ShowPageNew = False
form.PreviewControl.ShowPageDelete = False
form.PreviewControl.ShowPageDesign = False

If report.IsStopped = True Then Return

form.ShowDialog()

End Using
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

report.render(true) issue

Post by Vital »

Hello,

This is error of compilation or execution time?

Thank you.
mmurdock
Posts: 94
Joined: Tue Mar 20, 2007 4:59 pm

report.render(true) issue

Post by mmurdock »

Execution time.

Thanks,

Mat
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

report.render(true) issue

Post by Edward »

The reason of the exception is not in the code you showed, but somewhere in the report which was loaded from strTemplate string.

Please send it to support[at]stimulsoft.com for analysis.

Thank you.
mmurdock
Posts: 94
Joined: Tue Mar 20, 2007 4:59 pm

report.render(true) issue

Post by mmurdock »

Ok, I think I have narrowed down the problem. In my code I have a line that looks like this:

Code: Select all

Report.Dictionary.Databases.Add(New Stimulsoft.Report.Dictionary.StiMySqlDatabase(mysql_database, "Server=" + mysql_server + ";Database=" + mysql_database + ";Uid=" + mysql_username + ";Pwd=" + mysql_password + ";Allow Zero Datetime=true;"))

When I run the report in design mode and then do a preview I get the following error on this line:

Code: Select all

 Me.Dictionary.Databases.Add(New Stimulsoft.Report.Dictionary.StiMySqlDatabase("compass", "compass", "Server=localhost;Database=xxxxx;Uid=xxxxx;Pwd=xxxxx;Allow Zero Datetime=tr"& _ 
"ue;", false))
I think the problem is that there is a forth parameter in the second bit of code when there should only be three. I could be wrong though. This error message seems to verify it "Overload resolution failed because no accessible 'New' accepts this number of arguments."
Vital
Posts: 1278
Joined: Fri Jun 09, 2006 4:04 am

report.render(true) issue

Post by Vital »

Hello,

Some time ago we have added new parameter to constructor of MySqlDatabase. Report engine know about this parameter. Your version of MySqlDatabase - now. I think you need update your MySqlDatabase pack. Please get the latest pack from our website.

Thank you.
mmurdock
Posts: 94
Joined: Tue Mar 20, 2007 4:59 pm

report.render(true) issue

Post by mmurdock »

I am using an older Mysql pack because I thought there was an issue with current one according to this post: http://forum.stimulsoft.com/Default.aspx?g=posts&t=1181.

If this has been resolved please let me know.

Thanks!

Mat
mmurdock
Posts: 94
Joined: Tue Mar 20, 2007 4:59 pm

report.render(true) issue

Post by mmurdock »

Any suggestion on this?

Mat
Edward
Posts: 2913
Joined: Fri Jun 09, 2006 4:02 am

report.render(true) issue

Post by Edward »

Please download the MySQL Database pack from our site.

All incompatibilities with latest prerelease build is fixed in it.

Thank you.
mmurdock
Posts: 94
Joined: Tue Mar 20, 2007 4:59 pm

report.render(true) issue

Post by mmurdock »

Does the new version require that I use core labs? If so what product?

Mat
Post Reply