ToonKayser
Programmer
I want to write a word-document to a prn-file.
Before that I filled that document and all works well.
But the last thing I want to do is write this document to a PRN-File.
This file is transfered afterwards and is printed with some remote application.
I did this before with asp and the statement was:
objWord.Application.ActiveDocument.Printout 0,,,"C:afile.prn"
and this was ok.
Now I am trying to use only ColdFusion and no ASP for this.
All I get is this error:
COM error 0x80020005. Typkonflikt.
My statements in CF are like this:
<cfset no = false>
<cfset yes = true>
<cfset zero = 0>
<cfset file = "c:\#namedoc#.prn">
<cfset ret = objDoc.SaveAs("c:\#namedoc#.doc">
<cfset ssret = objDoc.PrintOut(yes,no,zero, "#file#">
The saveAs stement works fine.
But all the combinations I've tried with Printout all failed.
Help me please..... I am going insaaaaaaaaaaaaaaaane!
Toon
ps. Is there any documentation on this for ColdFusion?
Before that I filled that document and all works well.
But the last thing I want to do is write this document to a PRN-File.
This file is transfered afterwards and is printed with some remote application.
I did this before with asp and the statement was:
objWord.Application.ActiveDocument.Printout 0,,,"C:afile.prn"
and this was ok.
Now I am trying to use only ColdFusion and no ASP for this.
All I get is this error:
COM error 0x80020005. Typkonflikt.
My statements in CF are like this:
<cfset no = false>
<cfset yes = true>
<cfset zero = 0>
<cfset file = "c:\#namedoc#.prn">
<cfset ret = objDoc.SaveAs("c:\#namedoc#.doc">
<cfset ssret = objDoc.PrintOut(yes,no,zero, "#file#">
The saveAs stement works fine.
But all the combinations I've tried with Printout all failed.
Help me please..... I am going insaaaaaaaaaaaaaaaane!
Toon
ps. Is there any documentation on this for ColdFusion?