Problem creating SDLXLIFF from DOCX

Hello,

well I think there is a bug in the API somewhere. I added the SecondSample.docx file (which is part of the Studio Sample project) to a project and tried to convert it into SDLXLIFF using Studio 2011API, so that it can be translated. That does not work!

The file filter for docx is activated in the project. There is no problem with *.doc or *.txt. So I guess my code is correct. But I can post it, if needed. Can you please check?! I don't get an error message., If you need additional information, please tell me!

Thanks for looking into this and kind regards,

-Stephan-

 

Parents Reply
  • Feedback from the SDL development is, in their test application the conversion of DOCX files works without issue.  We also suggest you find out if any errors were generated when trying to convert the file by using the overload of the RunAutomaticTask method. This will create a list of MessageEventArgs containing the error information. This might determine why this file cannot be converted.  If any errors are present we could use this information to help determine the problem.

     

    //Set up lists to store messages from automatic task

    List<TaskStatusEventArgs> taskStatusEventArgsList = new List<TaskStatusEventArgs>();

    List<MessageEventArgs> messageEventArgsList = new List<MessageEventArgs>();

     

    //Call RunAutomaticTask method and collect any error information

    AutomaticTask task = createdProject.RunAutomaticTask(

    currentFileId,

    AutomaticTaskTemplateIds.ConvertToTranslatableFormat,

    (sender, taskStatusArgs) =>{ taskStatusEventArgsList.Add(taskStatusArgs); },

    (sender, messageArgs) =>{ messageEventArgsList.Add(messageArgs); }

    );

     

    //Display error messages

    foreach (MessageEventArgs errorMsg in messageEventArgsList)

    {

    Console.WriteLine(errorMsg.Message);

    }

     

     

    Additional points;

    1/ A copy of the files you are trying to convert would be useful.

    2/ What version of MSWord do you have installed on the machine where they are running the task?

     

    Paul Filkin | RWS Group

    ________________________
    Design your own training!

    You've done the courses and still need to go a little further, or still not clear? 
    Tell us what you need in our Community Solutions Hub

Children