Saltar al contenido principal

Búsqueda

Búsqueda

Cache Implementation With Bartender

Comentarios

2 comentarios

  • Avatar
    Gene Henson
    BarTender doesn't necessarily have a mechanism for caching data for future use. However, you can setup the BarTender System Database which will store a copy of every printed label in a SQL server. You could then use the System Database SDK to access to print jobs and reprint them (with the exact same data) to a printer of your choice. You said you are currently using ActiveX, but if the SDK is an option then you could look into this. Also, if your goal is to reduce calls to a database, this would obviously be counter-productive. The BarTender Help system has more information on the System Database SDK.

    If you're not interested in using the system database SDK, I think using BarTender XML to store and send your print jobs would be easiest (this could be done using ActiveX). You could do something like:

    [list=1]
    [*]Retrieve data from your database
    [*]Put that data into BarTender XML (see the BT Help for more info on XML)
    [*]Send the BT XML to BarTender to print the first time
    [*]Implement a class that holds the BT XML and serialize the class, or just save the XML to disk
    [*]Retrieve the needed XML on demand and change the printer name as needed
    [*]Resend the print job
    [/list]

    Those are just a couple ideas to get you started. The beauty of writing your own interface is that you can pretty much do whatever you want.

    Let us know if you have any other questions or need some more ideas.
    0
  • Avatar
    Legacy Poster
    Thank you for your response.
    I did not know before Bartender XML technology. In fact, it will be easiest to implement, but I hung cache implementation in the next release.
    0

Iniciar sesión para dejar un comentario.