Discover MakerZone

MATLAB and Simulink resources for Arduino, LEGO, and Raspberry Pi

Learn more

Discover what MATLAB® can do for your career.

Opportunities for recent engineering grads.

Apply Today

Thread Subject:
set printpreview

Subject: set printpreview

From: pink

Date: 16 Jun, 2011 10:05:20

Message: 1 of 3

I make printpreview code, like this

function pushbutton6_Callback(hObject, eventdata, handles)
% hObject handle to pushbutton6 (see GCBO)
% eventdata reserved - to be defined in a future version of MATLAB
% handles structure with handles and user data (see GUIDATA)

printpreview(handles.axes1,'color','white')

at run time that appears in the print preview but not axes1 entire application form that I created, how to keep appearing / target in the print preview is axes1, and how to put headers and footers in print preview

thanks
pink

Subject: set printpreview

From: Steven_Lord

Date: 16 Jun, 2011 13:36:52

Message: 2 of 3



"pink " <wahyoe_slipnot@yahoo.co.id> wrote in message
news:itckh0$mlg$1@newscl01ah.mathworks.com...
> I make printpreview code, like this
>
> function pushbutton6_Callback(hObject, eventdata, handles)
> % hObject handle to pushbutton6 (see GCBO)
> % eventdata reserved - to be defined in a future version of MATLAB
> % handles structure with handles and user data (see GUIDATA)
>
> printpreview(handles.axes1,'color','white')
>
> at run time that appears in the print preview but not axes1 entire
> application form that I created, how to keep appearing / target in the
> print preview is axes1, and how to put headers and footers in print
> preview

http://www.mathworks.com/help/techdoc/ref/printpreview.html

"Preview ***_figure_*** to print" [Emphasis mine.]

You can't print just one axes directly using PRINTPREVIEW; use COPYOBJ to
copy it to a new figure on its own and use PRINTPREVIEW to print that new
figure.

--
Steve Lord
slord@mathworks.com
To contact Technical Support use the Contact Us link on
http://www.mathworks.com

Subject: set printpreview

From: pink

Date: 16 Jun, 2011 18:47:04

Message: 3 of 3

thanks lord
whether printpreview uitable can handle the GUI?
I want to print data (matrix), whether printpreview be used?

Tags for this Thread

No tags are associated with this thread.

What are tags?

A tag is like a keyword or category label associated with each thread. Tags make it easier for you to find threads of interest.

Anyone can tag a thread. Tags are public and visible to everyone.

Contact us