ich habe vb.net 2010 (.net Framework 4) Anwendung aus der heraus ich mit L&L 18 Listen zunächst als Vorschau anzeigen und dann natürlich auch drucken möchte. Dazu habe ich folgenden Code im Programm:
ll.DataSource = ds
ll.Variables.Add("V1", sV1)
Dim exp As New ListLabel18.ExportConfiguration(ListLabel18.LlExportTarget.Preview, sOutFile, sProjFile)
exp.ShowResult = True
ll.Export(exp)
Der Code funktioniert einwandfrei in der IDE und auch außerhalb der IDE auf dem Entwicklungsrechner: Jeweils wird die Druckdatei “sOutFile” erstellt und anschließend die Vorschau geöffnet.
Sobald ich aber das Programm auf einem anderen Rechner laufen lassen kommt die Vorschau nicht mehr. Auch hier wird die Druckdatei “sOutFile” korrekt erstellt und ich kann sie anschließend auch mit llview18.exe öffnen, die Vorschau mag aber einfach nicht kommen.
Zuerst habe ich noch gedacht, dass vielleicht eine Datei/Dll fehlt. Aber ich habe schon alles, was das Verzeichnis “\LL18\Redistributierbare Dateien” hergibt in das Programmverzeichnis meiner Anwendung kopiert. Es hilft alles nichts.
Hier schonmal auf dem Zielsystem mit dem LL-Logging (Debwin) gearbeitet?
Vielleicht finden sich hier hilfreiche Aussagen im Logfile in Bezug auf das Nicht-Öffnen der erstellten Vorschaudatei?
danke für den Tipp. Das Problem ist “hilfreiche Aussage”. Ich habe debwin3 mit meinem Programm einmal auf dem Entwicklungsrechner und einmal auf dem Zielrechner laufen lassen und dann die Protokolle verglichen. Der wichtigste Punkt dürfte wohl sein: nach
und dann noch jede Menge Einträge bzgl. llview18.exe während auf dem Zielrechner nur noch
CMLL18 : 14:35:56.121 00001138/02 2 LlSetNotificationCallback(1,00000000)
CMLL18 : 14:35:56.121 00001138/02 3 =0x00000000
CMLL18 : 14:35:56.122 00001138/02 4 LlJobClose(1)
CMLL18 : 14:35:56.122 00001138/02 5 WRN: This job is being closed by a thread that is different from the thread that created it. This might cause trouble.
CMCT18 : 14:35:56.122 00001138/02 6 WRN: this CTL job is being closed by a thread that is different from the one that opened the job.
CMCT18 : 14:35:56.122 00001138/02 7 WRN: this CTL job is being closed by a thread that is different from the one that opened the job.
CMCT18 : 14:35:56.122 00001138/02 8 WRN: this CTL job is being closed by a thread that is different from the one that opened the job.
CMCT18 : 14:35:56.126 00001138/03 9 WRN: window cannot be destroyed (destruction thread differs from creation thread), trying to close it by cross-thread-sending a WM_CLOSE.
CMLL18 : 14:35:56.129 00001138/01 0 =(void)
CMLL18 : 14:35:56.130 00001138/01 1 »>.NET: ListLabel.Dispose() Job -1
CMLL18 : 14:35:56.131 00001138/01 2 »<.NET: ListLabel.Dispose(): Done
kommt. Leider weiß ich jetzt aber nicht, was ich damit anfangen soll.