Zum Hauptinhalt gehen

Suche

Suche

Detect Printer License Exceeded

Kommentare

1 Kommentar

  • Avatar
    Ian Cummings
    Moderator

    What version and build of BarTender are you using?  Check this via the "Help>About" menu item.

     

    I advise that you configure email alerts in BarTender and License Server ("Administer>Alert Setup" menu item) so that an admin can be notified the moment the printer license is exceeded.  Note that in recent versions of BarTender we implemented the, "exceeding printer license grace period" thus allowing you to continue printing, uninterrupted, no matter if the license is exceeded.

     

    In BarTender the message for exceeding the license is #1401.  The below example from the BarTender Help system demonstrates how to capture BarTender messages:

     

    public void Demo()
    {
       // Initialize a new BarTender print engine. 
       using (Engine btEngine = new Engine())
       {
          // Start the BarTender print engine.
          btEngine.Start();
    
          // Get engine's documents.
          Documents btFormatsList = btEngine.Documents;
    
          // Open a format.
          LabelFormatDocument btFormat = btFormatsList.Open(@"C:\Format1.btw");
    
          // Initialize the Messages list.
          Messages btMessages = null;
    
          // Print the format, receiving messages.
          btFormat.Print("Test Print", 6000, out btMessages);
    
          // Create a new custom message.
          Message btMessage = new Message("End of printjob", 777,
             MessageSeverity.Information, "Miscellaneous");
    
          // Add the custom message.
          btMessages.Add(btMessage);
    
          // Display information on each message. 
          foreach (Message m in btMessages)
          {
             Console.WriteLine("Category = " + m.Category);
             Console.WriteLine("ID = " + m.ID);
             Console.WriteLine("Severity = " + m.Severity);
             Console.WriteLine("Text = " + m.Text);
             Console.WriteLine(" ");
          }
    
          // Perform cleanup.
          btFormatsList.CloseAll(SaveOptions.DoNotSaveChanges);
    
          // Stop the BarTender print engine.
          btEngine.Stop();
       }
    }
    
    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.