I've created a custom ER format (and related files) and am able to export it through a menu item using the below code. I know that I can change the electronic destination settings to change how it's printed, but I'd also like to use print management settings so I can set conditions on these reports. I know that this is possible with ER reports like PO confirmations where I can download them from the repo, and they show up in print management settings like the regular SSRS reports, but I'm having trouble tracking this or similar code down as a starting point. TIA!
ERObjectsFactory::createFormatMappingRunByFormatMappingId(formatMappingId, _filename)
.withFileDestination(ERObjectsFactory::createFileDestinationBrowser())
.withParameter(new ERModelDefinitionDatabaseContext()).run();