![]() |
![]() | ![]() | ![]() | Altova Mailing List Archives>Archive Index >microsoft.public.xml Archive Home >Recent entries >Thread Prev - Bizarre run time error from DTS ActiveX Task [Thread Next] Re: Bizarre run time error from DTS ActiveX TaskTo: NULL Date: 4/1/2004 6:02:00 PM Also --- the runtime error occurs on OS: Server 2003. But does not happen
on 2000 or XP.
"Jeff Block" <jblock@R...> wrote in
message news:O2w%23JQEGEHA.3080@t......
> This code errors out, runtime error stating Object does not support the
> property or method from the 2ND write(transform...). If I run this script
> from the command line, it works fine. But from DTS, the error.
>
> And ideas ?
>
> ================== ================= ============
> Set xml = CreateObject("MSXML2.DOMDocument.4.0")
> Set xsl = CreateObject("MSXML2.DOMDocument.4.0")
>
> xml.async = false
> xsl.async = false
>
> xml.validateOnParse=False
>
> xml.load(strSourceInvFile)
> xsl.load(strINVXSLT)
>
> 'If xml.parseError.errorcode = <> 0
>
> 'set myErr = xml.parseError
> 'msgbox myErr.reason
>
> set fso = CreateObject("Scripting.FileSystemObject")
> set MyFile = fso.CreateTextFile(strINVTransformed, true)
>
> MyFile.Write(xml.transformNode(xsl))
> MyFile.Close
>
> xml.load(strSourceSalesFile)
> xsl.load(strSALESXSLT)
>
> set MyFile = fso.CreateTextFile(strSalesTransformed, true)
>
> MyFile.Write(xml.transformNode(xsl))
> MyFile.Close()
>
> set xml = nothing
> set xsl = nothing
>
>
| ![]() | ![]() | ![]() |
| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
