SBarnes wrote:your suggested work around was create the form and it worked.
That must have been when I was much younger and more reckless.
SBarnes wrote:your suggested work around was create the form and it worked.
string TextOut = "";
TextOut = "<?xml and so on....... just trying to get around the forum software detection of XML
foreach (JiwaFinancials.Jiwa.JiwaPurchaseOrders.Line poLine in purchOrder.Lines)
{
TextOut += "<Line>";
TextOut += "<PartNo>" + poLine.SupplierPartNo + "</PartNo>";
TextOut += "<QuantityOrdered>" + poLine.Quantity + "</QuantityOrdered>";
TextOut += "</Line>";
}
TextOut += "</Lines></JiwaDocument>";
return TextOut;
DannyC wrote:I am generating the XML file.
You should specify the encoding of the file to be UTF-16 when you write it
System.IO.File.WriteAllText(purchOrderForm.DialogSave.FileName,XMLFileContents,System.Text.Encoding.Unicode)
System.IO.File.WriteAllText(purchOrderForm.DialogSave.FileName,XMLFileContents,System.Text.Encoding.UTF8)
I think I'll just ditch running the plugin scheduler service on this server & try on a different server. Fortunately this client has a TS server and a SQL server. The service is running on their TS server. I'll get it running on the SQL server and see what transpires.a different version of some .NET component or something
DannyC wrote:As far as I can tell, there's some kind of corruption with Windows on this server.
Give me a few hours to knock up that code & we'll see how it goes.
Return to Technical and or Programming
Users browsing this forum: No registered users and 23 guests