MATLAB: Do figures containing uipanels not print properly in MATLAB 7.0 (R14)

linuxMATLABprintr14sp2uipanel

When I excute the following code in MATLAB 7.0 (R14),
h = figure;
hp = uipanel('Title','Main Panel','FontSize',12,...
'BackgroundColor','white',...
'Position',[.25 .1 .67 .67]);
hsp = uipanel('Parent',hp,'Title','Subpanel','FontSize',12,...
'Position',[.4 .1 .5 .5]);
hbsp = uicontrol('Parent',hsp,'String','Push here',...
'Position',[18 18 72 36]);
print
The printed output is misaligned and/or lacks uicontrols that appear in the figure.

Best Answer

This bug has been fixed in Release 2006b (R2006b). For previous product releases, read below for any possible workarounds:
This is fixed in MATLAB 7.2 (R2006a).
If you are using a prior release, no workarounds exist.