>Hello all,
>I have this code for user to change default printer.
>lcPrinter=GETPRINTER()
>SET PRINTER TO NAME "&lcPrinter"
>This works fine on development machine.
>When i deploy my application it does not work. no dialog box at all.
>What am i missing out.
>Thanks in advance.
Unrelated observation, but you don't need to use macro here. Just use name expression, e.g.
if !empty(m.lcPrinter)
set printer to name (m.lcPrinter)
endif
I just have a habit to avoid unnecessary macros if possible. Check David's Filer FAQ here in FAQ section regarding Macro/Evaluate/Name expression usage.
If it's not broken, fix it until it is.
My Blog