Hi Mathieu,

you might try something like this:

void PrintFile(str x_strFileName)
{
    #Macrolib.WinAPI
    ;
    try
    {
        WinAPI::shellExecute(x_strFileName,'','',#ShellExePrint);
    }
    catch (exception::DDEerror)
    {
        warning("Printing " + x_strFileName + " not successfull. Trying to
open.");
        try
        {
            WinAPI::shellExecute(x_strFileName,'','',#ShellExeOpen);
        }
        catch (exception::DDEerror)
        {
            error("Opening " + x_strFileName + " not successfull either.");
        }
    }

}

I hope that's what you were targeting at ...

Bye, Annette


Mit freundlichen Gr��en / Best regards
Dipl. Phys. Annette Thei�en
System Software Entwicklung
______________________________________________
Viscom AG - Carl-Buderus-Str. 9-15 - D-30455 Hannover
Phone: +49/511/94996-0 - Fax: +49/511/94996-900
mailto:[EMAIL PROTECTED] <mailto:[EMAIL PROTECTED]>  -
http://www.viscom.de <http://www.viscom.de/

-----Urspr�ngliche Nachricht-----
Von: mat_bin [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 6. August 2004 11:48
An: [EMAIL PROTECTED]
Betreff: [development-axapta] how print file from code?


Hi,

I would print a file from a class, how can I do this?

Best regards.

Mathieu



Yahoo! Groups Sponsor     

ADVERTISEMENT

<http://us.ard.yahoo.com/SIG=12980r23m/M=295196.4901138.6071305.3001176/D=gr
oups/S=1705006764:HM/EXP=1091875445/A=2128215/R=0/SIG=10se96mf6/*http://comp
anion.yahoo.com> click here     

<http://us.adserver.yahoo.com/l?M=295196.4901138.6071305.3001176/D=groups/S=
:HM/A=2128215/rand=484404308>      


  _____ 

Yahoo! Groups Links


*      To visit your group on the web, go to:
http://groups.yahoo.com/group/development-axapta/
<http://groups.yahoo.com/group/development-axapta/>
 

*      To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<mailto:[EMAIL PROTECTED]>
 

*      Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service
<http://docs.yahoo.com/info/terms/> .




[Non-text portions of this message have been removed]


Yahoo! Groups Sponsor
ADVERTISEMENT
click here


Yahoo! Groups Links

Reply via email to