FAQ: Visual Basic
| Saving Bitmap files: My primary objective is to take the barcodes that I've generated and save them as .bmp files. I'm using Visual Basic. Can you help me? | Here are some examples of doing this:
Saving as BMP File:
Image1.Picture = Barcode1.Picture SavePicture Image1.Picture, "c:\temp\code.bmp" or if you want to use the clipboard Clipboard.Clear Clipboard.SetData Barcode1.Picture Image1.Picture = Clipboard.GetData SavePicture Image1.Picture, "c:\temp\code.bmp" if you require a specific size: Barcode1.CreatePictureBySize 400, 300 ' Creates the Picture-Property with a specified size Clipboard.Clear Clipboard.SetData Barcode1.Picture
|
| Create a bitmap image on disk: I need to create a bitmap image of the barcode on disk, because I'm using VB6 Data report and it does not support ActiveX insertion. How can I do this? | You can write a simple application with VB6 to create a bitmap of the barcode. Please refer to the picture property of the control. You only have to copy this to an image control of VB6 and then save it to a bmp file.
|
| The picture object does not refresh or doesn't have any data: I try to print barcodes using your OCX with Visual Basic. I get an error stating the picture property is not set and does not contain any data yet. | If you use the picture property in time critical or batch loops, you should use the 'CreatePictureBySize' method before using the picture property. This guarantees that the picture property is correctly set with data.
|
| Rotating the Barcode: I would like to know if this control allows change orientation of the bar code (rotation)? | Yes, starting with version 5.00 of ActiveBarcode changing the orientation is possible. Please have a look at the property "Rotate".
|
| Crystal Report 6: We try to use your control with Crystal Report 6 and Visual Basic for usage on a report. We can add the control als OLE object, but we cannot link a property with a database? | We are sorry, we are using Crystal Report 5 only and can only say something about this version. Crystal Report 5 cannot fill the properties of an ActiveX control. So the usage of Active Barcode and any other OCX in Crystal Report is very restricted. If you have a newer on, please refer to the manual of Crystal Report, if something has changed.
|

| Home |
Shop |
Email |
Datenschutz |
Sitemap | © Lars Schenk & Frank Horn
All trademarks and product names mentioned are the property of their respective owners.
|
|