After creating setup printdlg fails to work

1 次查看(过去 30 天)
Hi,
I have created setup for my software using 2009b matlab version using compiler. After creating setup i am unable to perform print action. At the back end program i am using printdlg command.
I am getting an error as below but same not appearing in source code.
??? Error while evaluating uimenu Callback
??? Error using ==> printdlg at 11 PRINTDLG requires exactly one argument.
What is the reason?

采纳的回答

Manu MJ
Manu MJ 2012-2-10
Some times Matlab cheats like when i run the software using source print, printdlg works fine with out requesting any input parameters but after creating setup ans run standalone it throws an error "Pass the required input".
So please always try to pass parameters while printing like
printdlg(gcf);
then it works fine.

更多回答(0 个)

类别

Help CenterFile Exchange 中查找有关 Call C from MATLAB 的更多信息

Community Treasure Hunt

Find the treasures in MATLAB Central and discover how the community can help you!

Start Hunting!

Translated by