Based on printraw.txt you call:
GMaPSCommon.PrintFunctions.PrintRawText( asDoc, asPrinter)
PrintRawText with two string arguments expects a base64 string:
sLabel = System.Text.Encoding.Default.GetString(Convert.FromBase64String(sText));
But contents of label.txt isn't base64: 0x53546773515377774D44454B5430514B635467784D6770524D5459774D4377794E41...
If you have a valid label (which is base64) then you can use the first method from following class:
using System;
/*using GMaPSCommon;*/
namespace gmapscommonw
{
public class gmapsSample
{
public void PrintRawText(string sText, string sPrinterName)
{
GMaPSCommon.PrintFunctions.PrintRawText(sText, sPrinterName);
}
public void PrintRawText(string sText, string sPrinterName, bool bDisplayDialog)
{
GMaPSCommon.PrintFunctions.PrintRawText(sText, sPrinterName, bDisplayDialog);
}
}
}
This class can be compiled using c# to the framework you want to use (you have to choose one of those supported in powerbuilder).
.NET Standard
|
1.0
|
1.1
|
1.2
|
1.3
|
1.4
|
1.5
|
1.6
|
2.0
|
2.1
|
.NET Core
|
1.0
|
1.0
|
1.0
|
1.0
|
1.0
|
1.0
|
1.0
|
2.0
|
3.0
|
.NET Framework
|
4.5
|
4.5
|
4.5.1
|
4.6
|
4.6.1
|
4.6.1
|
4.6.1
|
4.6.1
|
N/A
|
You can add gmapscommon.cs to the new project. Otherwise you can add a reference to the appropriate dll and uncomment "using GMaPSCommon;" in the code above.
Andreas.