Re: xml into outlook custom form
- From: "Michael Bauer" <mib00@xxxxxxxxxxx>
- Date: Sat, 4 Jun 2005 08:14:49 +0200
Hi Daniel,
I´m not sure what will be printed. First you need to store the xml and
xsl file into the file system, then could can try this sample with the
xml file:
Private Declare Function ShellExecute Lib "shell32.dll" Alias _
"ShellExecuteA" (ByVal hwnd As Long, ByVal lpOperation As String, _
ByVal lpFile As String, ByVal lpParameters As String, _
ByVal lpDirectory As String, ByVal nShowCmd As Long) As Long
' versteckt das Fenster
Const SW_HIDE = 0
Public Function PrintFile(sFile As String, _
Optional lHwnd As Long _
) As Boolean
On Error Resume Next
PrintFile = CBool(ShellExecute(lHwnd, "print", sFile, vbNullString,
vbNullString, SW_HIDE))
End Function
--
Viele Gruesse / Best regards
Michael Bauer - MVP Outlook
"Daniel Vakil" <DanielVakil@xxxxxxxxxxxxxxxxxxxxxxxxx> wrote in message
news:068912E9-67CE-4D28-A208-DCCECF5EF949@xxxxxxxxxxxxxxxx
> hi, i have an outlook (XP) custom form that open automaticly the xml
attached
> 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
>
>
.
- Prev by Date: Re: Displaying / hidding multiple side by side calendars ?
- Next by Date: Re: Extract SMTP email address from mail receive
- Previous by thread: SQL CODE
- Next by thread: SentOnBehalfOfName strange problem
- Index(es):
Relevant Pages
|