2012.1 Breaks Project

Stimulsoft Reports.NET discussion
Post Reply
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

2012.1 Breaks Project

Post by Ink »

Hi,

I have uninstalled 2011 version & installed 2012.1 (just renewed my subscription).
My project now is completely broken, as it is missing references to 2011 version.
Is there an upgrade utitly I need to run my project through?
Also when I run the designer the DEMO water mark is still visible even though I downloaded via registered user location on the website.

Can you please advise?

Jon.
HighAley
Posts: 8430
Joined: Wed Jun 08, 2011 7:40 am
Location: Stimulsoft Office

Re: 2012.1 Breaks Project

Post by HighAley »

Hello.
Ink wrote:I have uninstalled 2011 version & installed 2012.1 (just renewed my subscription).
My project now is completely broken, as it is missing references to 2011 version.
Is there an upgrade utitly I need to run my project through?
Also when I run the designer the DEMO water mark is still visible even though I downloaded via registered user location on the website.
Please read the How to upgrade to a new version? article in our Knowledge Base. http://stimulsoft.helpserve.com/index.p ... rticleid=1
If you see Demo watermark it means that there are trial assemblies in your system left.

Thank you.
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Re: 2012.1 Breaks Project

Post by Ink »

Ok, I have done the recommended steps and my project now loads but I get an error when I come to run my report.
When the proc gets to the final line (Me.stiReportViewer.Report = Report) I get a NullReferenceException. This proc was working fine on the earlier version - the only thing I have changed is upgrading to Stimulsoft 2012.1

Code: Select all

Public Sub ViewReport(ByVal ReportName As String, Optional DataFile As String = "")

        Dim Report As StiReport = New StiReport()
        Report.Load(ReportPath & "\" & ReportName & ".mrt")
        Report.Dictionary.DataSources.Clear()
        Report.ReportName = Me.Text
     

            If DataFile = "" Then
                DataFile = ReportName
            End If

            ds.ReadXmlSchema(UserAppData & "\" & DataFile & ".xsd")
            ds.ReadXml(UserAppData & "\" & DataFile & ".xml")
            Report.Dictionary.ImportXMLSchema(ds)
            Report.RegData("Table", ds)

            Report.Render()
            Me.stiReportViewer.Report = Report


    End Sub
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Re: 2012.1 Breaks Project

Post by Ink »

I have know solved the above by deleting the viewer control from my form and adding it again, but now I have the DEMO watermark!
I noticed that the Stimulsoft Control were not in my toolbox & I had to browse to the 2012.1 directory to pick up the viewer control manually.
Checking the GAC both I have 3 versions of Stimulsoft - 2011.2, 2011.3 & 2012.1 and they will not uninstall from the GAC.

Also if I run the designer it is stamped with DEMO. I downloaded from the Registered users area.

Can you please advise?
Alex K.
Posts: 6488
Joined: Thu Jul 29, 2010 2:37 am

Re: 2012.1 Breaks Project

Post by Alex K. »

Hello,

Please make following steps:
1. Uninstall SR.
2. Check GAC and if need remove Stimulsoft Assemblies from GAC.
3. Install new version.
4. Update references in your projects.

Thank you.
Ink
Posts: 50
Joined: Sat Jul 02, 2011 2:26 am
Location: UK

Re: 2012.1 Breaks Project

Post by Ink »

Hi Aleksey,

I have done this. I have unistalled both version of SR, and removed references from GAC. I have installed setup downloaded from registered user area. I have updtaed project references. Project now runs, but I still get DEMO Watermark. I have also removed all files from BIN directory in my project. the only SR files I can now find on my PC are under the installation directory. Please advise?

Thanks,

Jon.
Andrew
Posts: 4109
Joined: Fri Jun 09, 2006 3:58 am

Re: 2012.1 Breaks Project

Post by Andrew »

Post Reply