Zum Hauptinhalt gehen

Suche

Suche

Add/remove Substring From Labelformatdocument

Kommentare

3 Kommentare

  • Offizieller Kommentar
    Avatar
    Ian Cummings
    Moderator Offizieller Kommentar

    Lorenzo: Currently, it is not possible to create new or modify existing Named Data Sources via automation, other than changing the value of existing items. 

  • Avatar
    Ian Cummings
    Moderator
    Sorry, but it is not currently possible to add new label formats, objects or sub-strings via automation. You may only modify already existing items. You should create all label formats, label objects and sub-strings that you might possibly need so that they are there to be made use of. Any objects or sub-strings that are not needed can either be set not to print or have the data set to nothing.
    0
  • Avatar
    Lorenzo Viola

    Hello,

    after some years maybe this limitation has been addressed.

     

    The following code will not work, of cours, as "SubStrings" is read-only.

     

                var btEngine = new Engine();           
                var btFormat = btEngine.Documents.Open(tbDefaultBlank.Text);

                var lBlankStrings = Enum.GetNames(typeof(DefaultBlankSubStrings));
                btFormat.SubStrings = lBlankStrings;

                btFormat.Save();

     

    Can you provide some other way to customize/create label formats ?

    It's an important feature to provide.

     

    Best regards

     

     

    0

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