We have an incredibly simple bartender label printing function on our Epicor SaaS env. Function worked just fine, but after an upgrade it stopped working. No errors, nothing, just click the same button and nothing happens. I’m not sure if it’s something on Epicor’s side or Bartender’s, but I assume something had to change since the upgrade. My gut tells me it has to be the path, but why would the path change? Anyone else had this weirdness happen?
string location = @"\\11111.file.core.cloud.net\11111\BarTender\Input\";
string fileName = "Label" + DateTime.Now.Ticks.ToString() + ".txt";
string data = "Label," + lblQty + "," + Val1 + "," + Val2 + "," + Val3 + "," + Val4 + "," + Val5 + "," + Val6;
string pathString = location.ToString() + fileName.ToString();
using (System.IO.StreamWriter sw = System.IO.File.CreateText(pathString))
{
sw.WriteLine(data);
}