Hello
I have created a preview file using layoutsIds as below.
var selectedLayouts = "repository://{8D946313-F171-479E-9FD5-FBBE80008CF3};repository://{9AE60C92-7F17-497D-96EB-43CCF4665752}"
var exportConfiguration = new ExportConfiguration(LlExportTarget.Preview, llDetailsFile, selectedLayouts);
ll.Export(exportConfiguration);
var previewFile = new PreviewFile(llDetailsFile, true, "", LlLanguage.English, true);
foreach(var page in previewFile.Pages)
{
Console.WriteLine(page.ProjectName); //This gives same value for all the pages eventhough the pages are printed using different layout Ids.
}
As shown above, the value for “page.ProjectName” is same for pages printed from different layouts. It will differ only in case of TOC or IDX layouts. How can we get the correct the ProjectName of the layouts?
crauchfuss
(combit Support - Christian Rauchfuß)
2
Hello,
we tried to reproduce the behavior with our repository sample. However, without success. Can you reproduce the described behavior? You can find the sample in your List & Label installation directory:
Hello
I am using LL30. I have tried the following code in the sample application. There was only one value in the output as shown in Watch window even though I have given two layoutIds in the ExportConfiguration.
Attached in the ZIP our the sample - with your code. We have only adjusted the debug output and the path to the LL preview file. Could please check that sample? If the behavior is still the same, then please contact our support team for a further investigation.
As I have already mentioned in my initial query the issue will not happen for ToC and IDX layouts. They are considered separately. The issue happens when there are two or more layouts(eg: of type List, not Index or Table of Contents). In the example that you provided, we have one Index, one ToC and one List. The issue will not happen here. You need to add one more List layout and you can see the issue. To reproduce the issue easily, select the layouts as I have given
I noticed the same behaviour. PreviewPage.JobName and PreviewPage.ProjectName refer to the first project in AutoProjectFile except for TOC/IDX.
crauchfuss
(combit Support - Christian Rauchfuß)
7
You are absolutely right. Please excuse this error on my part. It seems that only the ID/report file name of the first report is returned. I have already handed it over to our development department and hope to share new information asap.