Missing preview on inherited section report

Posted by: fredkn on 14 September 2017, 7:12 pm EST

    • Post Options:
    • Link

    Posted 14 September 2017, 7:12 pm EST

    [activereports_archive]Hello,

    i am trying to find a reason why inherited section reports, wont show anything but empty window in the designer. Code looks fines, compiles and in the application it renders as it should, export is also fine. However in visual studio (2013) the designer is empty.

    When i create new section report it works as advertised.

    Is it something known?

    I am using 9.5 and VB.NET

    Greetings and thanks!

    Fred[/activereports_archive]

  • Posted 14 September 2017, 7:12 pm EST

    [activereports_archive]Hello Fred,

    I think you are missing the “Build Solution” part here. You need to Build the project once before opening the report in Designer.

    Refer to the following links discussing the same :

    http://arhelp.grapecity.com/groups/topic/section-report-designer-wont-load/

    http://arhelp.grapecity.com/webhelp/AR10/index.html#InheritaMasterReportSection.html

    If I missed something here or the above doesn’t resolves your issue then share a test/dummy sample that replicates your issue. You can even make necessary changes in the installed sample “Inheritance” (…\Documents\GrapeCity Samples\ActiveReports 9\Section Reports\Layout\Inheritance) and share the same.

    That will help me to assist you appropriately.

    Regards,

    Reema[/activereports_archive]

  • Posted 14 September 2017, 7:12 pm EST

    [activereports_archive]Thank You Reema

    I will look at it but it was not because of missing rebuild. I will make the demo to show the issue. From copyright reasons i cannot share the actual code.

    Greetings,

    Fred

    @reema-pruthi said: Hello Fred,

    I think you are missing the “Build Solution” part here. You need to Build the project once before opening the report in Designer.

    Refer to the following links discussing the same :

    http://arhelp.grapecity.com/groups/topic/section-report-designer-wont-load/

    http://arhelp.grapecity.com/webhelp/AR10/index.html#InheritaMasterReportSection.html

    If I missed something here or the above doesn’t resolves your issue then share a test/dummy sample that replicates your issue. You can even make necessary changes in the installed sample “Inheritance” (…\Documents\GrapeCity Samples\ActiveReports 9\Section Reports\Layout\Inheritance) and share the same.

    That will help me to assist you appropriately.

    Regards,

    Reema

    [/activereports_archive]

  • Posted 14 September 2017, 7:12 pm EST

    [activereports_archive]I think i found the issue. It has actually nothing to do with inheritance, but with namespace.

    when you have a class like this

    [vb]Namespace Global.Backend.Lib.Report

    Public Class ReportBaseBig : Inherits GrapeCity.ActiveReports.SectionReport
    End Class
    

    End Namespace[/vb]

    then the designer won’t load.

    when i wrapped the ***.Designer.vb in the namespace it seems to work…

    The problem is that when you have no *.Designer.vb file, there is no way to make it work except removing the namespace from the original file.

    I would expect some kind of an error or info about namespace mismatch, but my issue is solved with that workaround.

    [/activereports_archive]

  • Posted 6 March 2018, 9:04 am EST

    Hi, sorry i dont understand your solution but i am facing the same problem. Please break it down in case i am missing something here.

    Below is my code, and when i right-click, i do not get the go to designer option:

    Imports GrapeCity.ActiveReports
    Imports GrapeCity.ActiveReports.Document
    Imports AMP_Web
    
    Public Class NewActiveReportCertificate1 : Inherits GrapeCity.ActiveReports.SectionReport
    
        Public Sub New(ByVal UserID As String, ByVal Type As String)
            MyBase.New()
    
            'This call is required by the Windows Form Designer.
            InitializeComponent()
    
            'Add any initialization after the InitializeComponent() call
            'Add any initialization after the InitializeComponent() call
            If Type = "Rep" Then
                labelName.Text = _SingleReturn2("SELECT RTRIM(fst_name) + ' ' + RTRIM(lst_name) as Name from representative where row_iD = '" & UserID & "'")
                labelID.Text = "ID Num: " & _SingleReturn2("SELECT per_num as Name from representative where row_iD = '" & UserID & "'")
            Else
                labelName.Text = _SingleReturn2("SELECT RTRIM(FirstName) + ' ' + RTRIM(LastName) as Name from dealer_login where row_iD = '" & UserID & "'")
                labelID.Text = "ID Num: " & _SingleReturn2("SELECT ID as Name from dealer_login where row_iD = '" & UserID & "'")
            End If
    
            labelDate.Text = Now.Date.Date
        End Sub
    
        'Form overrides dispose to clean up the component list.
        Protected Overloads Overrides Sub Dispose(ByVal disposing As Boolean)
            If disposing Then
            End If
            MyBase.Dispose(disposing)
        End Sub
    
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels