Advanced processing of barcodes

In order to extend the existing application possibilities of barcodes, there will be an additional barcode object from the upcoming conzept 16 version 5.8.09.

The processing of barcodes is currently limited to print output. With the new barcode object, these can be easily integrated into dialogs. In addition to pure display, the object also supports saving barcodes as image files in BMP, JPG, PNG and TIFF formats via function WinBarcodeSaveImage().

This opens up a wide range of possibilities for further use. For example, you could add barcode output to your own word processing system based on the DocEdit or RtfEdit object.

Similar to the “PrtBarcode” print object, the content and symbolism of the code is defined via the properties wpCaption and wpTypeBarcode.

The following example shows how a QR code is generated during runtime and saved as an image:

sub CreateBarCode()
local
{
  tBarcode : handle;
}

{
  // Create barcode object
  tBarcode # WinCreate(_WinTypeBarcode);

  if (tBarcode > 0)
  {
    // Set barcode to 100 x 100 pixels
    tBarcode->wpArea # RectMake(0,0,100,100);

    // Define barcode type and content.
    tBarcode->wpTypeBarcode # _WinBarcode2dQRCode;
    tBarcode->wpCaption     # 'www.vectorsoft.de';

    // Save barcode as image
    tBarcode->WinBarcodeSaveImage(_Sys->spPathMyPictures + '\QRCode.jpg',_WinImageFormatJPG);

    // Release barcode object
    tBarcode->WinDestroy();
  }
}

Related articles:

Scan me
Erzeugen von Barcodes

Klicken Sie hier, um die Nutzungsbedingungen für unseren Blog zu lesen.

Leave a Reply

Your email address will not be published. Required fields are marked *

Leave the field below empty!

Requests, questions or feedback are welcome:

Terms of use of the comment function in the blog

1. General information

Vectorsoft AG (‘Provider’) provides a public blog for Internet users (‘Users’) on the vectorsoft.de website. The public blog is intended for the exchange of information and ideas. Users who participate with contributions and comments undertake to comply with the blog terms of use and are responsible for the accuracy, appropriateness and freedom from legal infringements of their contributions. By using the comment function in our blog, you accept these terms of use.

2. Netiquette

We ask you to refrain from personal attacks and provocations based on other opinions. Please argue objectively and maintain a constructive discussion culture. Your comment should always be related to the topic in question in order to avoid digressions into other topics. Posting the same comment or several similar comments more than once is not permitted.

3. Prohibition of illegal content

By submitting your comment, you confirm that you are not violating any copyrights or other rights of third parties. Inciting, racist statements, instructions for criminal offences and their glorification, depictions of violence, pornographic content and statements that violate personal rights are prohibited.

4. No advertising

The use of the comment function is not permitted for commercial or party-political purposes. Advertising contributions of any kind will be deleted immediately.

5. Details of the name

When entering your name, pay attention to the principles mentioned above.

6. Source references

If you intend to publish quotes or contributions from third parties, please indicate the respective sources and explain how they relate to the blog post.

7. Violation of the terms of use

Posts that violate this policy will be deleted immediately. If you notice any violations yourself, please send us the link to the comment in question by e-mail to . We expressly point out that we will exclude individual users in the event of repeated or serious violations of these terms of use.

As of: Sept. 2024

Get your Trial Version now!

Test yeet free of charge

IHRE EVALUIERUNGSLIZENZ - JETZT ANFORDERN!

TESTEN SIE DIE CONZEPT 16 VOLLVERSION - UNVERBINDLICH und KOSTENFREI

Subscribe to our newsletter

[cleverreach_signup]
WordPress Cookie Notice by Real Cookie Banner