MATLAB: Am I unable to print a figure through the application compiled through MATLAB Compiler 4.3 (R14SP3)

deploydeployprintMATLAB Compilerprintdlgr14sp3

I am using the DEPLOYPRINT function to print a figure in my stand-alone application created with MATLAB Compiler 4.3 (R14SP3). When the application is run, the figure is displayed correctly. I then choose File -> Print from the figure menu, select a printer and click "Ok." However, a blank page is printed.

Best Answer

This bug has been fixed in Release 2007a (R2007a). For previous product releases, read below for any possible workarounds:
This bug has been fixed in Release 2006a (R2006a). For previous product releases, read below for any possible workarounds:
There is a bug in MATLAB Compiler 4.3 (R14SP3) in the way that DEPLOYPRINT handles printing of figures when the PaperPositionMode is set to 'auto'.
To work around this issue, use the following call to set the PaperPositionMode to 'manual' before printing the figure:
set(gcf, 'PaperPositionMode', 'manual');