Forum Replies Created
-
Sebastian March 31, 2010 at 1:24 pm
Reply To: Turn off: Automatic Validation befor Saving a Document
March 31, 2010 at 1:24 pmParticipants 0Replies 2Last Activity 12 years, 10 months agoI have implemented a custom Save-method as you recommended:
[code]
var fso = new ActiveXObject(“Scripting.FileSystemObject”);
if (fso != null && absoluteFileName != null && absoluteFileName != “” && str != null) {
var fh = fso.CreateTextFile(absoluteFileName, true, true);
if (fh != null) {
fh.WriteLine(str);
fh.Close();
ActiveDocument.Saved = true;
}
}
[/code]But I still have a problem with the encoding of the saved docs. The original doc is econded in UTF8 and should be UTF8 after saving with this method as well (like the standard Save of XMAX does). But the method above changes the encoding to unicode (because of the fso.CreateTextFile I think).
How do I have to modify the method, to safe the docs in UTF8 or even better, to save them in their original encoding (like XMAX behaves)?
Thank you for your quick response.
Sebastian March 1, 2010 at 8:28 am
Reply To: Turn off: Automatic Validation befor Saving a Document
March 1, 2010 at 8:28 amParticipants 0Replies 2Last Activity 12 years, 11 months agoI have implemented a custom save() function, it works out pretty well, but I still have a problem with the Dokument.Saved flag. How could I set it to true out of my custom function?
The problem with this flag is, that the “Would you like to safe…” dialog is still occurring, when the user is closing the XMAX editor, after saving with my custom save function.
Sebastian February 24, 2010 at 9:17 am
Reply To: Turn off: Automatic Validation befor Saving a Document
February 24, 2010 at 9:17 amParticipants 0Replies 2Last Activity 12 years, 11 months agoWhere is the flag
[code]validate_before_export = boolean[/code]
located? We could not find a ini file or anything like that. We are using Xmax as ActiveX Plugin. Does it provide this options as well? -
AuthorPosts