Hi, I am facing a problem in exporting a control Xps Format by ExportToXps command. I wish ti hide the progression bar so i used that as follows ExportToXps(string,pagesize,bool); In the place of bool ,If I use false then it crashes. If leave this kind of overloading and uses only two arguments . it works fine.Kindly provide me a solution for this. Regards
Imported from legacy forums. Posted by Britto (had 2043 views)
You can use the ProcessStartInfo class in System.Diagnostics as follows:
ProcessStartInfo Info = new ProcessStartInfo(sFileName); Info.ErrorDialog = true; Process.Start(Info);
This assumes that the .xps extension is registered with an application to open it by default (ie double click in explorer). If not then the OpenWith… dialog will be displayed. The above works with any file. To set the filename I would guess you need to set a full filename as it is just writing it to the apps current directory if you give it just the filename (which depends on where it is started from).
Imported from legacy forums. Posted by Derek (had 2447 views)