LinkBack Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #1   Report Post  
Posted to microsoft.public.excel.programming
external usenet poster
 
Posts: 7
Default Adodb with MSXML, no results

Hey all,


I've been trying to view some result through Excel from my xslt. I'm
using adodb to obtain datas in my sheet but nothin's appear, could
anyone tell me what' s going wrong in my vba code?




Dim app As New MSXML2.DOMDocument30

Dim xmlDom, xslDom, projDom, xslFileName As String

Dim xslt As New MSXML2.XSLTemplate30
Dim xslDoc As New MSXML2.FreeThreadedDOMDocument30
Dim xmlDoc As New MSXML2.DOMDocument30
Dim xslProc As IXSLProcessor
Dim xmlout As New MSXML2.FreeThreadedDOMDocument30
Dim oStream As New adodb.Stream
Dim oRecord As New adodb.Recordset
Set oStream = New adodb.Stream

oStream.Open

xslDoc.async = False
xslDoc.Load "c:\compara.xsl"

If (xslDoc.parseError.errorCode < 0) Then
Dim myErr
Set myErr = xslDoc.parseError
MsgBox ("Ha um erro " & myErr.reason)
Else
Set xslt.stylesheet = xslDoc
xmlDoc.async = False
xmlDoc.Load "C:\Instructional_program.xml"
If (xmlDoc.parseError.errorCode < 0) Then
Set myErr = xmlDoc.parseError
MsgBox ("You have error " & myErr.reason)
Else

Set xslProc = xslt.createProcessor()
xslProc.input = xmlDoc
'xslProc.Transform
xslProc.output = oStream

xslProc.Transform

oStream.SaveToFile ("c:\Doc_out.xls")

End If
End If
End Sub

Marcos Hercules

 
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to save a output property from MSXML Marcos Hercules Excel Programming 0 June 3rd 06 08:22 PM
MSXML.DLL HTTP getAllResponseHeaders setRequestHeader "Cookie" Rick Excel Programming 0 October 25th 05 05:00 PM
ADODB SQL help Eric Excel Programming 1 August 4th 05 04:48 PM
VB strings, MSXML, Latin 9, and the Euro Rod Good Excel Programming 1 June 16th 04 03:18 AM
ADODB Richard Mogy Excel Programming 3 May 6th 04 09:14 PM


All times are GMT +1. The time now is 11:50 PM.

Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
Copyright ©2004-2025 ExcelBanter.
The comments are property of their posters.
 

About Us

"It's about Microsoft Excel"