Службу запускаю от того же пользователя, от которого запускается и приложение.
Код: Выделить всё
var rep = new StiReport();
string path = System.IO.Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location);
rep.Load(path + "\\" + "Propusk.mrt");
ds.ReadXmlSchema(path + "\\" + "DataSetPropusk.xsd");
rep.Dictionary.ImportXMLSchema(ds);
rep.RegData(ds);
rep.Print();
Код: Выделить всё
Exception thrown: 'System.Exception' in Stimulsoft.Report.dll
Service_Print.exe' (CLR v4.0.30319: Service_Print.exe): Loaded 'xqximvgf'. Module was built without symbols.
Exception thrown: 'System.IO.DirectoryNotFoundException' in mscorlib.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.Net.WebException' in System.dll
Exception thrown: 'System.InvalidOperationException' in System.Windows.Forms.dll
Exception thrown: 'System.InvalidOperationException' in System.Windows.Forms.dll
Exception thrown: 'System.InvalidOperationException' in Stimulsoft.Report.dll