Page 1 of 2

report.render(true) issue

Posted: Fri May 09, 2008 3:59 pm
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

report.render(true) issue

Posted: Fri May 09, 2008 4:05 pm
by Vital
Hello,

This is error of compilation or execution time?

Thank you.

report.render(true) issue

Posted: Fri May 09, 2008 5:10 pm
by mmurdock
Execution time.

Thanks,

Mat

report.render(true) issue

Posted: Sat May 10, 2008 11:51 am
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.

report.render(true) issue

Posted: Mon May 12, 2008 9:44 pm
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."

report.render(true) issue

Posted: Tue May 13, 2008 12:35 am
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.

report.render(true) issue

Posted: Tue May 13, 2008 9:53 am
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

report.render(true) issue

Posted: Thu May 15, 2008 3:49 pm
by mmurdock
Any suggestion on this?

Mat

report.render(true) issue

Posted: Fri May 16, 2008 3:47 am
by Edward
Please download the MySQL Database pack from our site.

All incompatibilities with latest prerelease build is fixed in it.

Thank you.

report.render(true) issue

Posted: Fri May 16, 2008 1:26 pm
by mmurdock
Does the new version require that I use core labs? If so what product?

Mat