RE: Print preview missing in UCI
Morning, so our users currently use in the legacy web the print preview feature to print the form as it renders in dynamics. The form consists of subgrids which themselves use filtered views etc. So there's dynamic logic in the form, which then gets printed as-is thru the current print preview function.
With regards to using word templates in UCI to replace it , it appears you can't mimic the 'subgrids with filtered views' logic and behavior that's on the dynamics form, via the template that dynamics generates. You can only link to to a 1:N entity and it will render *all* the related records, though on the form there are filters applied on the subgrid via a particular view and what not.
So native templates are not sufficient. As we have to cutover to UCI and need printability of the form in production, we have created a programmatic workaround where we are calling the legacy print preview API via custom html button in UCI form, that we created and are calling it Print Preview . It is using the same call to "_forms/print/print.aspx" that the legacy web interface uses. This appears to be working.
So till microsoft provides a replacement for print preview in UCI, I would request this API not be touched.