Here is my Data Directive on SysRptLst Standard. This puts the PDF file on the Epicor server/EpicorData/myuserdirectory. I need to put it on the file server instead of the Epicor server. Is there a way to do this?
Please help!
Thanks,
Richard
var ttSysRptLst_xRow = (from ttSysRptLst_Row in ttSysRptLst select ttSysRptLst_Row).FirstOrDefault();
if (ttSysRptLst_xRow != null)
{
System.Threading.Thread.Sleep(10000);
var hMonitor = Ice.Assemblies.ServiceRenderer.GetService<Ice.Contracts.ReportMonitorSvcContract>(Db);
byte[] bytes = hMonitor.GetReportBytes(ttSysRptLst_xRow.SysRowID);
if (bytes == null) throw new BLException("Bytes for PDF is empty.");
var baseFolderType = Epicor.ServiceModel.Utilities.SpecialFolder.UserData;
var userDataPath = Ice.Lib.PathHelper.GetFolderPath(Epicor.ServiceModel.Utilities.SpecialFolder.UserData);
var absoluteFileName = System.IO.Path.Join(userDataPath, "testrwz.pdf");
File.WriteAllBytes(absoluteFileName, bytes);
}