AboutBox Method
Opens an About window. Syntax Return Valueobject.AboutBox() No return value. |
||||||||||||
SaveToImageFile Method
Saves the image of the barcode to a file. Syntax Parametersobject.SaveToImageFile(cx, cy, sFileName, [lRes,] [dm]) Return Value No return value.Remarks The format the file will be saved in depends on the extension of the file name For example, if you specify sFileName as "img1.jpg", the barcode will be saved as JPEG.Examples '1. |
||||||||||||
CopyToClipboard Method
Copies the image of the barcode onto the clipboard. After that you can insert this image into your program using Ctrl+V or the Paste menu item. Syntax Parametersobject.CopyToClipboard(cx, cy) Return Value No return value. |
||||||||||||
DrawBarcodeToSize Method
Draws the barcode in the device context. You can use either printer or screen as the device context. Syntax object.DrawBarcodeToSize(X, Y, CX, CY, dm, [hDC]) Parameters
Return Value No return value.Examples 'Draw a MaxiCode to a screen. |
||||||||||||
BeginPrint Method
Opens access to a printer. Syntax Parametersobject.BeginPrint(sPrinterName) Return Value No return value.Remarks This function must be called first before other printing features are used. |
||||||||||||
EndPrint Method
Closes the printer. You cannot use any printing features after that. Syntax Return Valueobject.EndPrint() No return value. |
||||||||||||
NewPage Method
The StartPage function prepares the printer driver to accept data. Syntax Return Valueobject.NewPage() No return value. |
||||||||||||
EndPage Method
The EndPage function notifies the device that the application has finished writing to a page. This function is typically used to direct the device driver to advance to a new page. Syntax Return Valueobject.EndPage() No return value. |
||||||||||||
GetPrinterHDC Method
The function returns the handle of the printer previously opened with the help of the BeginPrint function. Syntax object.GetPrinterHDC() Return Value HDC |
||||||||||||
SetPrinterHDC Method
Defines the handle of the printer that will be used for printing. If this function is called, you do not have to call BeginPrint. In this case the entire process of closing/opening the printer, etc. will be controlled outside the DataMatrix ActiveX Control. Syntax Parametersobject.SetPrinterHDC(hDC) Return Value No return value.Example Printer.CurrentX = 2048 Printer.Print "BarcodeTools.com, VB Example" 'MaxiCode-ActiveX will use the Visual Basic Printer object Call MaxiCodeCtrl1.SetPrinterHDC(Printer.hDC) 'print the barcodes Call MaxiCodeCtrl1.DrawBarcodeToSize(10, 10, 26.38, 25.39, dmMM) Call MaxiCodeCtrl1.DrawBarcodeToSize(70, 10, 26.38, 25.39, dmMM) Printer.EndDoc |
||||||||||||
BinaryWritePicture Method
This method is similar to SaveToImageFile, but instead of saving the image to a file it represents it as a byte array. Syntax object.BinaryWritePicture(sFmt, CX, CY) Parameters
Return Value Variant that specifies safe array of the bytes.Remarks This method can be useful for sending the image over the Internet. For example, it can be used by the IIS server.Example There is a short example of the ASP page distributed together with MaxiCode ActiveX Control.<% ' (c) 1999-2009 www.BarcodeTools.com ' we are sending a GIF image to the client Response.ContentType = "image/gif" Response.BinaryWrite Barcode.BinaryWritePicture("gif", 200, 200) SET Barcode=nothing %> |