The error is coming up because there is no such command or set of arguments
in Outlook. You can only print an entire item. You'd have to export the text
of the item into an application such as Word and use Word's printing methods
to do what you want. Outlook has very primitive printing functionality.
--
Ken Slovak
[MVP - Outlook]
http://www.slovaktech.com
Author: Professional Programming Outlook 2007
Reminder Manager, Extended Reminders, Attachment Options
http://www.slovaktech.com/products.htm
"Julio De Icaza" wrote in message
...
Hello coding guys,
I'm new to this but think is a easy deal: Create a macro to print the
first
page of an opened email message, using the following procedure.
Application.ActiveWindow MailItem.PrintOut Pages:="1"
Please bring me a solution for the "Compile error: Syntax error" received.
Seasons greetings,