ERLEDIGT
NEIN
NEIN
ANTWORTEN
0
0
ZUGRIFFE
562
562
EMPFEHLEN
-
Hi
Ich versuche ein Word Dokument zu speichern, es funktioniert alles wunderbar, doch das Dokument ist leer wenn ich es öffne hat da jemand eine Idee woran das liegt?
Code csharp:1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32
Word.Application WordApp = new Word.ApplicationClass(); object missingValue = Type.Missing; object fileName = "F:\\Neu.doc"; object readOnly = false; object isVisible = true; Word.Document myDoc = WordApp.Documents.Open(ref fileName, ref missingValue, ref readOnly, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref missingValue, ref isVisible, ref missingValue, ref missingValue, ref missingValue, ref missingValue); myDoc.Activate(); object FileName = "F:\\test.xml"; object FileFormat = Word.WdSaveFormat.wdFormatXML; object LockComments = false; object AddToRecentFiles = true; object ReadOnlyRecommended = false; object EmbedTrueTypeFonts = true; object SaveNativePictureFormat = true; object SaveFormsData = true; object SaveAsAOCELetter = false; object Encoding = Microsoft.Office.Core.MsoEncoding.msoEncodingAutoDetect; object InsertLineBreaks = false; object AllowSubstitutions = false; object LineEnding = Word.WdLineEndingType.wdCRLF; object AddBiDiMarks = false; myDoc.SaveAs(ref FileName, ref FileFormat, ref LockComments, ref missingValue, ref AddToRecentFiles, ref missingValue, ref ReadOnlyRecommended, ref EmbedTrueTypeFonts, ref SaveNativePictureFormat, ref SaveFormsData, ref SaveAsAOCELetter, ref Encoding, ref InsertLineBreaks, ref AllowSubstitutions, ref LineEnding, ref AddBiDiMarks); myDoc.Close(ref missingValue, ref missingValue, ref missingValue);
Greetz"Gott ist tot! Gott bleibt tot! Und wir haben ihn getötet." - Friedrich Nietzsche
Ähnliche Themen
-
Word Dokument drucken und Word schließen
Von InFlame im Forum Visual Basic 6.0Antworten: 4Letzter Beitrag: 27.07.11, 12:06 -
JAXB - leeres Dokument beim unmarshalling
Von nail im Forum Java GrundlagenAntworten: 0Letzter Beitrag: 05.12.09, 13:45 -
http_request.responseXML gibt im IE ein leeres XML-Dokument zurück
Von harmonica im Forum Javascript & AjaxAntworten: 19Letzter Beitrag: 04.05.08, 09:19 -
Word Dokument schützen
Von vbeldor im Forum Visual Basic 6.0Antworten: 2Letzter Beitrag: 23.07.07, 16:28 -
Word Dokument via PHP erstellen
Von hans_schmid im Forum PHPAntworten: 15Letzter Beitrag: 28.09.04, 09:32





Zitieren
Login





