xml into outlook custom form

  • Thread starter Thread starter Guest
  • Start date Start date
G

Guest

hi, i have an outlook (XP) custom form that open automaticly the xml attach
file into its htmlbody. the htmlbody then show the xml content with its xsl
formatting. i need to print this xml/xsl files from the outlook form with
the xsl file formating with a commandbutton.
any clue, code ?
thanks
 
If the HTML message body is already correctly displaying the content, then the MailItem.Printout method should do what you need.
 
hi sue, i used already this method and i tried it again today ( just in case
). it prints as outlook does from its menu meaning only headers and an icon
with the attach file name. not the content of the xml file.( and of course
not the htmlbody ).
i think the code needed has to replace "right click upon the htmlbody, print"
any clue, code please
thanks
 
So you're saying that Outlook itself does not correctly print what you see on the screen when you print manually?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
if i use the outlook menu it prints, as .printout, only the original outlook
elements.
the xml attached file is printed as an icon on the page.
when loading, my custom form use a code to open the attached file into a
webbrowser outlook element. the only way i found ( so far ) is to "right
click the form body and click print". i am looking for a code to do this by
clicking a button "PRINT" on the form.
thanks again
 
Ah, that explains it. It sounds like you're not working with HTMLBody at all, as your original post implied, but with a browser control. It's normal for a control like that not to print. I wonder if you could take the rendered HTML content from the browser control and set the item's HTMLBody to that content? Or are you already using the message body for other information?

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
another thing : i found a "Xprint".ocx that can print the custom outlook form
as is (?)
this ocx display a right print preview including the web image but do not
print this web image....
 
XPrint works only with Outlook 2000 and even then not very well.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
 
Back
Top