Forum Replies Created

  • Sebastian

    Reply To: Turn off: Automatic Validation befor Saving a Document

    Participants 0
    Replies 2
    Last Activity 12 years, 10 months ago

    I 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.

    Reply

    Sebastian

    Reply To: Turn off: Automatic Validation befor Saving a Document

    Participants 0
    Replies 2
    Last Activity 12 years, 11 months ago

    I 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.

    Reply

    Sebastian

    Reply To: Turn off: Automatic Validation befor Saving a Document

    Participants 0
    Replies 2
    Last Activity 12 years, 11 months ago

    Where 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?

    Reply

Products
Downloads
Support