PC Review


Reply
Thread Tools Rate Thread

xml into outlook custom form

 
 
=?Utf-8?B?RGFuaWVsIFZha2ls?=
Guest
Posts: n/a
 
      30th May 2005
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


 
Reply With Quote
 
 
 
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      30th May 2005
If the HTML message body is already correctly displaying the content, then the MailItem.Printout method should do what you need.

--
Sue Mosher, Outlook MVP
Author of
Microsoft Outlook Programming - Jumpstart for
Administrators, Power Users, and Developers
http://www.outlookcode.com/jumpstart.aspx


"Daniel Vakil" <(E-Mail Removed)> wrote in message news:89B4D5DC-19C8-49C5-BBB3-(E-Mail Removed)...
> 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
>
>

 
Reply With Quote
 
=?Utf-8?B?RGFuaWVsIFZha2ls?=
Guest
Posts: n/a
 
      31st May 2005
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

"Sue Mosher [MVP-Outlook]" wrote:

> If the HTML message body is already correctly displaying the content, then the MailItem.Printout method should do what you need.
>
> --
> Sue Mosher, Outlook MVP
> Author of
> Microsoft Outlook Programming - Jumpstart for
> Administrators, Power Users, and Developers
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Daniel Vakil" <(E-Mail Removed)> wrote in message news:89B4D5DC-19C8-49C5-BBB3-(E-Mail Removed)...
> > 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
> >
> >

>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      31st May 2005
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
http://www.outlookcode.com/jumpstart.aspx


"Daniel Vakil" <(E-Mail Removed)> wrote in message news:C888B571-D2E2-4B19-958B-(E-Mail Removed)...
> 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
>
>> > 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
>> >
>> >

>>

 
Reply With Quote
 
=?Utf-8?B?RGFuaWVsIFZha2ls?=
Guest
Posts: n/a
 
      1st Jun 2005
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

"Sue Mosher [MVP-Outlook]" wrote:

> 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
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Daniel Vakil" <(E-Mail Removed)> wrote in message news:C888B571-D2E2-4B19-958B-(E-Mail Removed)...
> > 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
> >
> >> > 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
> >> >
> >> >
> >>

>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      1st Jun 2005
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
http://www.outlookcode.com/jumpstart.aspx


"Daniel Vakil" <(E-Mail Removed)> wrote in message news:94C75FB6-3C05-4B92-93E9-(E-Mail Removed)...
> 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
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> So you're saying that Outlook itself does not correctly print what you see on the screen when you print manually?
>>
>> "Daniel Vakil" <(E-Mail Removed)> wrote in message news:C888B571-D2E2-4B19-958B-(E-Mail Removed)...
>> > 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
>> >
>> >> > 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
>> >> >
>> >> >
>> >>

>>

 
Reply With Quote
 
=?Utf-8?B?RGFuaWVsIFZha2ls?=
Guest
Posts: n/a
 
      1st Jun 2005
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....

"Sue Mosher [MVP-Outlook]" wrote:

> 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
> http://www.outlookcode.com/jumpstart.aspx
>
>
> "Daniel Vakil" <(E-Mail Removed)> wrote in message news:C888B571-D2E2-4B19-958B-(E-Mail Removed)...
> > 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
> >
> >> > 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
> >> >
> >> >
> >>

>

 
Reply With Quote
 
Sue Mosher [MVP-Outlook]
Guest
Posts: n/a
 
      1st Jun 2005
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
http://www.outlookcode.com/jumpstart.aspx


"Daniel Vakil" <(E-Mail Removed)> wrote in message newsE301314-F3BA-4D7B-BB31-(E-Mail Removed)...
> 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....
>
> "Sue Mosher [MVP-Outlook]" wrote:
>
>> So you're saying that Outlook itself does not correctly print what you see on the screen when you print manually?
>>
>> "Daniel Vakil" <(E-Mail Removed)> wrote in message news:C888B571-D2E2-4B19-958B-(E-Mail Removed)...
>> > 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
>> >
>> >> > 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
>> >> >
>> >> >
>> >>

>>

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
place .NET custom control on custom form in Outlook 2003 and Outlook 2007 sd Microsoft Outlook VBA Programming 7 11th Oct 2007 07:44 PM
desktop alert for a custom Outlook form shows the form's author =?Utf-8?B?Q2hlcnlsIFI=?= Microsoft Outlook Form Programming 0 6th Dec 2005 09:41 PM
Outlook 2003: TreeView with custom Tooltips on custom post form Urs Ruefenacht Microsoft Outlook Form Programming 0 26th Jan 2005 02:10 PM
custom message form recieved without custom fields - outlook 2000 motiv8d Microsoft Outlook Form Programming 1 5th Mar 2004 01:35 PM
custom message form recieved without custom fields - outlook 2000 motiv8d Microsoft Outlook Form Programming 0 5th Mar 2004 02:00 AM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 04:34 PM.