Skip to main content

Search

Search

Multiple Labels On A Sheet Of A4

Comments

2 comments

  • Avatar
    Domingo Rodriguez
    Moderator

    Each time you call Print() a new print job will be sent to the printer, and as a result, the page will feed out of the A4 printer. If you're wishing to print different data for a multi-label based page / A4 sheet, you will need to have BT connect to a text database file instead, where 1 row means one label to be printed. You would first fill this file with variable data, and then have BarTender print it. Attached is an example of how this can be done:

     

     


    using
    Seagull.BarTender.Print.Database;


    // Application Code

    // ...


    Engine btEngine = new Engine();


    // Start a BarTender print engine

    btEngine.Start();


    // Open a label format

    LabelFormatDocument btFormat =
    btEngine.Documents.Open(@"c:\MyLabel.btw");


    // Set the TextFile database connection
    file name

    ((TextFile)btFormat.DatabaseConnections["TextFileDB"]).FileName = @"c:\NutritionInformationEurope.txt";


    // Print the label format document

    btFormat.Print();


    // Stop the engine

    btEngine.Stop(); 

    0
  • Avatar
    Legacy Poster

    I don't know why I'm resistant of outputing to a text file and send the file to Bartender for printing.

    But I guess it's either this way or setting up the .BTW to accept two sets of data, which doesn't sound like a good idea.

     

    Thank you for your response.

    0

Please sign in to leave a comment.