Code: Select all
private:factory/swriter
Code: Select all
loadComponentFromUrl
Any help?
Code: Select all
private:factory/swriter
Code: Select all
loadComponentFromUrl
Your profile says you are using Windows 7 so try this linkwhen I open an existing document, it is opened by default in OpenOffice, and I would prefer to use LibreOffice.
Code: Select all
var unoPath = @"C:\Program Files\LibreOffice\program";
Environment.SetEnvironmentVariable("UNO_PATH", unoPath, EnvironmentVariableTarget.Process);
Environment.SetEnvironmentVariable("PATH", Environment.GetEnvironmentVariable("PATH") + @";" + unoPath, EnvironmentVariableTarget.Process);