After creating setup printdlg fails to work

1 view (last 30 days)
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?

Accepted Answer

Manu MJ
Manu MJ on 10 Feb 2012
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.

More Answers (0)

Community Treasure Hunt

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

Start Hunting!