Why LabelFormatDocument.Substring is read-only for me? S’abonner

0
Avatar
Janne Yli-Arvo

Hello

Every single tutorial, this forum and BarTender .NET SDK Documentation is indicating that this is how you modify substring value:


Engine btEngine = new Engine(True);
LabelFormatDocument btFormat = btEngine.Documents.Open(@"c:\TestLabel.btw");
btFormat.SubStrings["SerialNumber"].Value = "1234567890";    // This line particularly

Even the official SDK documentation clearly states that "Named substrings not only can be read, but they can be modified programmatically.".

This, however, is not working. The value doesn't change.

There's also SubStrings.SetSubString(string, string) but it doesn't work either.

I'm using:
- BarTender Enterprise Automation 2016 R8
- Visual Studio 2015 & 2017
- .NET 4.5
- Bartender.Print is version 11.0.8.1
- Language is C#

Have I just seriously overlooked something?

- Janne

 

Vous devez vous connecter pour laisser un commentaire.