Borrar filtros
Borrar filtros

How do I choose a printer from a list of printers in a stand alone application?

1 visualización (últimos 30 días)
How do I choose a printer from a list of printers in a stand alone application?
I would like to be able to have a user choose from a drop down list of printers in my compiler generated stand-alone application. I would like something similar to PRINTDLG. However, PRINTDLG is not supported in stand-alone mode.

Respuesta aceptada

MathWorks Support Team
MathWorks Support Team el 27 de Jun. de 2009
You can have a stand-alone application that will allow your user to select from a drop down list of printers by using the PRINT function. For example
surf(peaks) %create figure to be printed
print -dsetup %bring up the print dialogue box, select printer
print %print the figure with the new settings
If you are using DEPLOYPRINT then use the -v option:
surf(peaks) %create figure to be printed
if isdeployed
deployprint -v
else
print -dsetup %bring up the print dialogue box, select printer
print %print the figure with the new settings
end

Más respuestas (0)

Categorías

Más información sobre C Shared Library Integration en Help Center y File Exchange.

Productos

Community Treasure Hunt

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

Start Hunting!

Translated by