Returning an Exported Template in the Response

To return data about an exported template in the response, you must set the ReturnImageInReponse attribute to true. This attribute returns a response that contains an image of the exported template as a string in Base64 format.

A response that contains template data in Base64 format consumes a lot of space.

For more information, refer to ExportPrintPreviewToImage Tag.

The following example shows the response that is returned when the ReturnImageInResponse attribute is set to true.

<?xmlversion="1.0"encoding="utf-16"?>

<ResponseVersion="2.0"Name="09232006_103601_Job1"ID="123"AppName="BarTender"AppVersion="9.00"AppVersionId="900"AppVersionMajor="9"AppVersionMinor="00"AppVersionBuild="2345"AppInstancePid="12345"AppInstanceGUID="(5EFC7975-14BC-11CF-9B2B-00AA00573819)">

<User>Administrator</User>

<Server>MyServer</Server>

<CommandName="Job1">

<ExportPrintPreviewToImage>

<ImageDataImageFormatType="jpg"Page="1">/9j/4AAQSkZJRgABAAEBLAEsAAD//gAfTEVBRCBUZWNobm9s

b2dpZXMgSW5jLiBWMS4wMQD/2wBDAAICAgICAgICAgICAgIC

AgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgICAgIC

AgICAgICAgICAgICAgL/xAGiA...

                      ...AUAFABQAUAFABQAUAFAB

QAUAFABQAUAFABQAUAFABQAUAFABQAUAFAH/2Q==</ImageData>

</ExportPrintPreviewToImage>

</Command>

</Response>