hi good moring to every one,
i want to convert docx file to xps file by using either c# or Open Xml only, because i don't want to install msoffice at all in my server.
for this i did a lot of R&D and practice ,finally i concluded with one solution as shown below:
System.Diagnostics.Process p=newProcess ();
p.StartInfo.FileName = @"C:\Users\madhubabub\Desktop\11.docx";
p.StartInfo.WindowStyle = ProcessWindowStyle.Hidden;
p.StartInfo.CreateNoWindow =true;
p.StartInfo.Verb ="PrintTo";
p.StartInfo.RedirectStandardInput.ToString();
p.Start();
but i facing problem with this snippet is: it's working fine in msoffice installed environment, not working in other environment.
any one can help me to fix this problem with any other solutions also, but it has to work in even office is not there.
finally one more think is , after execution of code save dialog box has to open to save the file.
already i tryed with Word AutomationServices , Open office and open office Sdk , these approches are working fine, but execution takes lot of time for Large File , in my applicaton i will upload nearly 70mb size files . so any more solutions to fix this problem regrading time