Measurement system in Web Report Designer

Hi,

We are running the server with the Web Report Designer in Docker, using the windows/servercore image, which is based on en-US settings. This causes the designer to always display measurements in inch rather than millimeters. We have read the tips from this post, and tried setting the Unit property value explicitly to LlUnits.Millimeter_1_1000, but this doesn’t work and the designer is still displaying measurements using inch. We are also setting the culture info to de-DE when creating the ListLabel instance, but that doesn’t have any effect either.

From what we tested it seems like there is no way to change the displayed measurements in the Web Report Designer, it always uses the host system setting instead. Is this really the case or are we doing something wrong? It would be nice if the displayed measurements could be controlled by either the Unit property or the culture info setting.

Just did a quick check - basically it seems to work like this:

public override void OnProvideListLabel(ProvideListLabelContext provideListLabelContext)
{
     ListLabel ll = DefaultSettings.GetListLabelInstance(provideListLabelContext.RepositoryId, null, provideListLabelContext.IsPrinterless, provideListLabelContext.Initializing);
     ll.Unit = LlUnits.Millimeter_1_1000;
     provideListLabelContext.NewInstance = ll;
 }

Can you spot a difference? Can you try to modify one of our samples to reproduce the issue?

1 Like