Multiple Print Feature

Hi Community,

I hope you’re doing well.

I wanted to touch base with you regarding some recent developments in my work. I took the class ‘DocPrintJournalController’ as a reference and created new classes within my model. Before moving forward, I wanted to confirm if there could be any potential issues with future releases or updates. Your insight would be invaluable in ensuring that everything aligns smoothly with upcoming changes.

Thank you for your guidance and support. Looking forward to your feedback.

Hi @bvk,

We can recommend following Microsoft’s general best practices, such as using inheritance and Chain of Command (CoC) for extensions.

That will allow you to have backward compatibility.

This how-to manual might be helpful: How to Customize Docentric SSRS Replicas

Just make sure that, whenever you upgrade D365FO or Docentric, you thoroughly test to confirm that everything continues to work as expected.

Hello @DalilaI

Thank you for the reply

I could not extend the Docentric class because the framework did not allow me to extend it , however i took a copy of the class to our own model and Modified the code to match the requirements

Looking forward to hearing from you

Thanks

Hello @bvk,

Copying a class into your own model and modifying it is generally not recommended, as it can create maintenance challenges. Any future changes made to the original class will not be reflected in your copied version, which may require manual rework during upgrades.

We strongly recommend using inheritance/extensions wherever possible. If the framework prevents extension, then an alternative extension approach may be required.

Without reviewing your specific implementation, we can’t provide further guidance. However, please be aware that maintaining a copied version of a class means you assume responsibility for testing and alignment during each upgrade of D365FO and Docentric.

I hope this makes things clearer.