Dio Posted June 23, 2009 Posted June 23, 2009 Hey people! $Text=_RTFCreateDocument($Font) $Textblock=_RTFAppendString($Text,_ArrayToString($MonatZSummeArray,""),$FontColour,$Fontsize,$FontStyle,$Font) $hFormatErgebnisDatei=FileOpen("MonateErgebnisDatei.doc",1);öffnet/erstellt ein Worddokument und legt das Handle in der Var $FormatErgebnisDatei ab FileWriteLine($hFormatErgebnisDatei,$Textblock) $oFormatErgebnisDatei=_WordAttach("MonateErgebnisDatei.doc","FileName") if @error Then MsgBox(0,"",@error) EndIf $FormatErgebnisDatei=_WordDocGetCollection($oFormatErgebnisDatei,0) _WordDocPrint($FormatErgebnisDatei,0,1,0,0,$ListboxText) _WordDocClose($FormatErgebnisDatei) I get Error 7 all the time. What's my mistake? Greetz Dio
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now