Skip to Content

CR for VS change request: can generated classes be marked as partial?


In Visual Studio, each Crystal Report .rpt file has a code behind file that's automatically generated. Is there any possibility of you guys changing the report code generator so the class includes the "partial" keyword?

The main reason I'm asking is because we have over 800 reports in one of our projects, and they are automatically added to the Visual Studio toolbox window, which seems to be overwhelming it. This causes it to take a long time to display and is also corrupting the list of items in the toolbox. If the code behinds were marked as partial, then we could extend the classes ourselves in a separate file (which would be useful in general to many people), but in my particular case I'd be able to annotate the partial class with the [ToolboxItem(false)] attribute to prevent them from being added to the toolbox.

Adding the partial keyword shouldn't break any existing code and would make extensibility for us much easier, especially in scenarios like mine. Is this minor change something that could possibly be considered in a future release?


Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

2 Answers

  • Apr 20, 2018 at 09:13 PM

    Hi Dan,

    I'll ask R&D if it's possible.


    Add comment
    10|10000 characters needed characters exceeded

  • Apr 23, 2018 at 01:25 PM

    Hi Daniel,

    R&D looked at it but not clear what or where you want this change.

    Can you explain in more detail and give steps to reproduce the issue?

    Thank you


    Add comment
    10|10000 characters needed characters exceeded