ActiveReports Designer

Posted by: eric.kreger on 9 January 2023, 4:47 am EST

    • Post Options:
    • Link

    Posted 9 January 2023, 4:47 am EST

    There is probably a simple answer to this but i have not been able to find it. I have 10 or so active reports in .net. Two of them are .rdlx files. I am able to edit those using ActiveReports Designer 15.0. The remaining reports are just .net class files (.cs). I can edit them manually by looking at the code but obviously that is not desirable. How can i open these in ActiveReports so that i can edit them?

  • Posted 9 January 2023, 5:46 pm EST

    Hi Eric,

    The .cs files must be Code-Based Section Report files. For each report you should have at least a .cs file and a .designer.cs file, and sometimes a .resx resource file.

    The easiest way to design code based section reports is to open them in the Visual Studio Integrated Designer. Please follow the following steps in order to do so.

    1. Open Visual Studio and create a new Winforms project using the ActiveReports 15 Section Report Application (code-based) Template.
    2. Click on Create.
    3. Now add all the three files into the project:
      • reportName.cs
      • reportName.designer.cs
      • reportName.resx (if any)
    4. Right click on the Project Node in the Solution Explorer and Unload the Project.
    5. Find and replace the following code snippets:

    For designer file(reportName.designer.cs):

    Before:

    <Compile Include="reportName.Designer.cs" />
    

    After:

     <Compile Include="reportName.Designer.cs">
          <DependentUpon>reportName.cs</DependentUpon>
        </Compile>
    

    For resource file(.resx):

    Before:

     <EmbeddedResource Include="reportName.resx" />
    

    After:

    <EmbeddedResource Include="reportName.resx">
          <DependentUpon>reportName.cs</DependentUpon>
    </EmbeddedResource>
    
    1. Now Reload the project by right clicking on the Project node and clicking on “Reload with Dependencies”.
    2. Now click on the ReportName.cs node and you should be able to open the report in the Visual Studio Integrated Report Designer.

    Regards,

    Akshay

  • Posted 10 January 2023, 3:17 am EST

    Thanks for your reply. Let me start from the first problem i have. I have a license for ActiveReports 15. I incorrectly installed ActiveReports 16. After i realized what i did, i unistalled it (i think) and installed AR15. However, whenever i try to do anything in Visual Studio (for example the steps you have listed above) it still tries to use ActiveReport 16. For example, when i selected the template you listed above, there was none for AR15. Only AR16. I tried to use that just to see what would happen and of course it said it was unlicensed. Can you tell me how to remove AR16 templates from Visual Studio?

  • Posted 10 January 2023, 11:12 pm EST - Updated 10 January 2023, 11:17 pm EST

    Hi Eric,

    It seems that the Visual Studio extension is still not uninstalled.

    To uninstall the Visual Studio Extension, please follow these steps:

    1. Open Visual Studio.
    2. Go to Extensions>Manage Extensions.
    3. In the Installed extensions tab select and uninstall ActiveReports 16 extension. For reference,I have attached a screenshot.
    4. Close Visual Studio.

    After you close Visual Studio the extension should be automatically uninstalled.

    Now, install the latest version of ActiveReports 15 from the following page:

    Download Older Versions

    Once the product is installed check if the ActiveReports 15 extension is installed. You can check this by opening the Manage Extension Dialog(Installed Tab) in Visual Studio.

    If the ActiveReports 15 integration is not installed, you can manually install it by going to:

    C:\Program Files (x86)\GrapeCity\ActiveReports 15\VisualStudio
    and install the Visual Studio Extension for your version of Visual Studio manually.

    Regards,

    Akshay

  • Posted 12 January 2023, 5:33 am EST

    Thanks for your help. Took a bit but i was able to get everything working.

Need extra support?

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

Learn More

Forum Channels