Type | Description | |||
Picture as Variant | A Picture/IPictureDisp object or a string expression that indicates the path to the picture or the file, to be encoded. For instance, you can encode *bmp, *.jpg, *.gif picture files, or EBN files | |||
String | A String expression that indicates the BASE64 representation of the picture or file being loaded. If empty string is returned nothing was encoded. |
The following VB sample encodes the "zapotec.bmp" picture file:
MsgBox Print1.Encode64("c:\winnt\zapotec.bmp")
The following VB.NET sample encodes the "zapotec.bmp" picture file:
MsgBox(AxPrint1.get_Encode64("c:\winnt\zapotec.bmp"))
The following C# sample encodes the "zapotec.bmp" picture file:
MessageBox(AxPrint1.get_Encode64("c:\winnt\zapotec.bmp"))
The following C++ sample encodes the "zapotec.bmp" picture file:
MessageBox(m_print.get_Encode64(COleVariant("c:\winnt\zapotec.bmp")))
The following VFP sample encodes the "zapotec.bmp" picture file:
wait window nowait thisform.Print1.Encode64("c:\winnt\zapotec.bmp")