I have a RichEdit and the content of said Edit should be saved to a .doc file. I already found the Word User Defined Functions (http://www.autoitscript.com/autoit3/docs/libfunctions/Word%20Management.htm), but I can't seem to find a way to actually write to that file. This is the code I have:
$MyDocsFolder = "::{450D8FBA-AD25-11D0-98A8-0800361B1103}"
$where= FileSaveDialog("Plan Speichern", $MyDocsFolder,"Microsoft Word Dokumente (*.doc)", 2)
If StringInStr($where,".doc") Then
$word = _Word_Create(false,true)
$doc = _Word_DocAdd($word)
_Word_DocSaveAs($doc,$where)
$infile = _GUICtrlRichEdit_StreamToFile($Edit1, $where) ;this is what I tried
_Word_DocSave($doc)
_Word_DocClose($doc)
_Word_Quit($word)
Else
$wohinexport = $wohinexport & ".doc"
$word = _Word_Create(false,true)
$doc = _Word_DocAdd($word)
_Word_DocSaveAs($doc,$where)
$infile = _GUICtrlRichEdit_StreamToFile($Edit1, $where)
_Word_DocSave($doc)
_Word_DocClose($doc)
_Word_Quit($word)
EndIf
If anyone could thell me what the correct function is to write to that document, I would be so happy
Thank you,
Reinhardt1julian