The XML was Improperly formatted ?

ItWorks

Member
Licensed User
Longtime User
Hi,
I am having trouble with Escape Code sequencing build of a string variable to send to a BlueTooth connected printer. Works perfect in a Win Mobile app and so expected it to work in B4a. Small demo project attached, if you run it in Debug mode and stop it in the "SetPrinterCodes" routine and hover over pCodeDOUBLE = Chr(27) & Chr(119) & Chr(1) then you get the message "The XML was Improperly Formatted" and when you send the final constructed string out to the Printer via a Serial Port write, it does not work.

Help tearing my hair out - this works - used it for years !

Any pointers appreciated
ItWorks
 

Attachments

  • PrintTest.zip
    7.6 KB · Views: 168

ItWorks

Member
Licensed User
Longtime User
XML Improperly formatted

Hi Erel,

Thanks for the feedback, I finally discovered that fact and I have now sorted out the issue.

ItWorks
 
Upvote 0
Top