Latex4CorelDRAW icon indicating copy to clipboard operation
Latex4CorelDRAW copied to clipboard

Docker empty

Open Leucit opened this issue 8 years ago • 43 comments

Dear Mr. Bender,

unfortunately, I have an issue when trying to use the addon in CorelDRAW x8. The Docker is completely empty, although I have exactly followed your instructions. Do you have any ideas about that?

Leucit avatar May 15 '17 07:05 Leucit

Are you sure that the DLL was unblocked? It sounds like CoreDRAW was not able to load the Addon.

janbender avatar May 15 '17 13:05 janbender

Yes, all three(?) DLLs are unblocked. I can see the docker but its empty. Do I need to install additional software packages?

Leucit avatar May 17 '17 08:05 Leucit

Hi! It seems I am with the same problem here. All three DLL are unblocked (inside ScintillaNET folder), the Docker is there but the 'latex' tab is empty. Other tabs work as usual (see below, even though it is in portuguese I think it might help).

I'm using Corel X8 (64 bit) in Windows 8.1.

image

image

lgabs avatar May 24 '17 00:05 lgabs

I also have the problem of empty docker. I am using Corel 2017 (and I did the path correction). Do you have any tip or solution?

Thanks, regards.

willdfonseca avatar Sep 05 '17 00:09 willdfonseca

Do you have a 64bit version of CorelDraw? The ScintillaNet DLL is 64bit and won't work on 32bit systems.

janbender avatar Sep 05 '17 05:09 janbender

Hi! I am having the very same problem of an empty docker, too. I am using the 64 bit version of CorelDraw Graphics Suite X7 (and I have not forgotten to adjust all paths in Latex4CorelDraw.csproj ;-) ) on Windows 8.1. I'd very much appreciate any tip that you might have. Thanks, Thomas

tomtitom avatar Sep 08 '17 13:09 tomtitom

Did you also follow the installation guide:

Installation:

Extract zip into C:\Program Files\Corel\CorelDRAW Graphics Suite X8\Programs64\Addons to install the addon.
Right-click and open "Properties" for each DLL file in the folder. If you see the following text, you have to unblock the file:
"Security: This file came from another computer and might be blocked to help protect this computer."
Activate docker window "Latex" in the menu "Windows".

janbender avatar Sep 08 '17 13:09 janbender

First of all, thanks for the quick response! Yes, I can see the properties of all dlls without getting that message. It seens there was no need to unblock anything. I copied and extracted the zip-file as admin. But I made sure that I can see the properties as regular user. So under properties I see that admin is the owner of the dll's and the User has "read" and "run" permission.

tomtitom avatar Sep 08 '17 13:09 tomtitom

Hi @Leucit, @lgabs, @willdfonseca ! -- were you able to solve the problem with the empty docker? What's the trick? Any hint is much appreciated!

tomtitom avatar Sep 12 '17 07:09 tomtitom

Did you build the plugin using Visual Studio? If yes, which version did you use?

My problem is that I cannot reproduce your issue. So if you can solve it, please tell me how it works.

janbender avatar Sep 14 '17 05:09 janbender

Hi guys, unfortunately, I could not solve the issue, yet. I am using CorelDraw X8 and updated on the latest version today - but it did not bring any improvement.

Leucit avatar Sep 18 '17 06:09 Leucit

Is the Microsoft .NET Framework (at least version 4.0) installed on your system?

janbender avatar Sep 18 '17 07:09 janbender

Thanks for the update! -- No, I did not build the plugin. I just copied everything in the folders following the installation instructions. Yes, .NET Framework 4.7 is installed.

tomtitom avatar Sep 18 '17 13:09 tomtitom

I had the issue too, running the latest Windows 10 Enterprise (1709) and CorelDRAW Graphics Suite 2017. I made a junction from CorelDRAW Graphics Suite X8 to CorelDRAW Graphics Suite 2017, but got an empty Docker. So I installed Visual Studio 2015 Community and build the addon again (changed to version 2017 instead of X8 in the project file) and the addon runs flawlessly (version 1.0.2). Sizes from some files in my compiled version differ from the ones I can download here. Version 1.0.5 from mfschumann doesn't seem to work for me.

rhoeben avatar Nov 21 '17 13:11 rhoeben

Hello,

I have the same problem. Is there already a solution? I'd love to use this addon with CorelDRAW Graphics Suite 2018. I tried to build it myself with VS 2017 Community, but since I'm a big newbie in things of programming & Co, I'm already failing in compiling the code. I get this Error-Message:

Der Befehl "
      if not exist "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" md "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw"
      copy "C:\Users\fried\Desktop\Latex4CorelDRAW\bin\Release\Latex4CorelDraw\Latex4CorelDraw.dll" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y
      copy "C:\Users\fried\Desktop\Latex4CorelDRAW\CorelDrw.addon" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y
      copy "C:\Users\fried\Desktop\Latex4CorelDRAW\AppUI.xslt" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y
      copy "C:\Users\fried\Desktop\Latex4CorelDRAW\UserUI.xslt" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y
      copy "C:\Users\fried\Desktop\Latex4CorelDRAW\\ScintillaNET\SciLexer.dll" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y
      copy "C:\Users\fried\Desktop\Latex4CorelDRAW\\ScintillaNET\SciLexer64.dll" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y
      copy "C:\Users\fried\Desktop\Latex4CorelDRAW\\ScintillaNET\ScintillaNET.dll" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y
      copy "C:\Users\fried\Desktop\Latex4CorelDRAW\\ScintillaNET\ScintillaNET.xml" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y
      if Release == Debug copy "C:\Users\fried\Desktop\Latex4CorelDRAW\bin\Release\Latex4CorelDraw\\Latex4CorelDraw.pdb" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw\Latex4CorelDraw.pdb"
" wurde mit dem Code 1 beendet.	Latex4CorelDraw			
Warnung		Die Komponente "VGCore", auf die verwiesen wird, wurde nicht gefunden.	Latex4CorelDraw			

Warnung		Der Dateipfad für die Typbibliothek "95e23c91-bc5a-49f3-8cd1-1fc515597048" Version 19.1 kann nicht abgerufen werden. Bibliothek nicht registriert. (Ausnahme von HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED))	Latex4CorelDraw		
```	

or as an ouput Message:

1>------ Erstellen gestartet: Projekt: Latex4CorelDraw, Konfiguration: Release Any CPU ------ 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2725,5): warning MSB3284: Der Dateipfad für die Typbibliothek "95e23c91-bc5a-49f3-8cd1-1fc515597048" Version 19.1 kann nicht abgerufen werden. Bibliothek nicht registriert. (Ausnahme von HRESULT: 0x8002801D (TYPE_E_LIBNOTREGISTERED)) 1> Latex4CorelDraw -> C:\Users\fried\Desktop\Latex4CorelDRAW\bin\Release\Latex4CorelDraw\Latex4CorelDraw.dll 1> Das Verzeichnis oder die Datei kann nicht erstellt werden. 1> 0 Datei(en) kopiert. 1> Das System kann den angegebenen Pfad nicht finden. 1> Das System kann den angegebenen Pfad nicht finden. 1> 0 Datei(en) kopiert. 1> Das System kann den angegebenen Pfad nicht finden. 1> 0 Datei(en) kopiert. 1> Das System kann den angegebenen Pfad nicht finden. 1> 0 Datei(en) kopiert. 1> Das System kann den angegebenen Pfad nicht finden. 1> 0 Datei(en) kopiert. 1> Das System kann den angegebenen Pfad nicht finden. 1> 0 Datei(en) kopiert. 1> Das System kann den angegebenen Pfad nicht finden. 1> 0 Datei(en) kopiert. 1> Das System kann den angegebenen Pfad nicht finden. 1> 0 Datei(en) kopiert. 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: Der Befehl " 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: if not exist "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" md "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: copy "C:\Users\fried\Desktop\Latex4CorelDRAW\bin\Release\Latex4CorelDraw\Latex4CorelDraw.dll" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: copy "C:\Users\fried\Desktop\Latex4CorelDRAW\CorelDrw.addon" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: copy "C:\Users\fried\Desktop\Latex4CorelDRAW\AppUI.xslt" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: copy "C:\Users\fried\Desktop\Latex4CorelDRAW\UserUI.xslt" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: copy "C:\Users\fried\Desktop\Latex4CorelDRAW\ScintillaNET\SciLexer.dll" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: copy "C:\Users\fried\Desktop\Latex4CorelDRAW\ScintillaNET\SciLexer64.dll" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: copy "C:\Users\fried\Desktop\Latex4CorelDRAW\ScintillaNET\ScintillaNET.dll" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: copy "C:\Users\fried\Desktop\Latex4CorelDRAW\ScintillaNET\ScintillaNET.xml" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw" /y 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: if Release == Debug copy "C:\Users\fried\Desktop\Latex4CorelDRAW\bin\Release\Latex4CorelDraw\Latex4CorelDraw.pdb" "c:\program files\corel\coreldraw technical suite 2017\programs64\addons\Latex4CorelDraw\Latex4CorelDraw.pdb" 1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(5143,5): error MSB3073: " wurde mit dem Code 1 beendet. ========== Erstellen: 0 erfolgreich, 1 fehlerhaft, 0 aktuell, 0 übersprungen ==========

If anybody could help me, I would be so happy and grateful!

Greetings from Germany
Frieder

raverank avatar May 09 '18 15:05 raverank

Did you try to install it in this way:

https://github.com/InteractiveComputerGraphics/Latex4CorelDRAW/releases/tag/1.0

janbender avatar May 11 '18 07:05 janbender

Thanks for your quick response, eventhough this thread is pretty old!

Yes, I followed those instructions. All dlls have been "unblocked". I even checked my antivirus-program, but it doesn't show any blocked programs. Maybe I do have to give special reading/writing rights?!

Best regards

raverank avatar May 11 '18 17:05 raverank

It seems that CorelDraw don't want to load the plugin for some reason. However, I really don't know why. If you find a solution, please tell me.

janbender avatar May 14 '18 07:05 janbender

I was able to make it work. Had to

  • recompile it myself with the correct path (as written in the build instructions) and
  • call the folder 'Latex4CorelDraw', not just 'Latex'

There was an error in the post-build script, but I just copied the files under bin/Release manually.

If someone wants to try my build, it's available here: https://www.xeve.de/wp/2018/05/fix-for-latex4coreldraw-with-coreldraw-2017/

nspo avatar May 19 '18 14:05 nspo

I updated the install instructions with the correct path. Thanks for pointing this out.

janbender avatar May 28 '18 17:05 janbender

Hi. I am getting closer -- but still some need help, please. I updated to CorelDraw Graphics Suite 2018. Installed Visual Studio Community 2017. (Still working on Windows 8.1.) I built the project following the instructions. And indeed, the docker is NOT empty anymore! Also the PREVIEW works just perfectly.

However, I get an error message when I try to create a new Latex object. I tried to understand the error message (see below) and the code and googled for clues, but as I am not a programmer, I am at a loss.

Any hit is highly appreciated. Thanks in advance! Best, Thomas

Informationen über das Aufrufen von JIT-Debuggen
anstelle dieses Dialogfelds finden Sie am Ende dieser Meldung.

************** Ausnahmetext **************
System.Runtime.InteropServices.COMException (0x80004005): Der Vorgang konnte aufgrund des folgenden Fehlers nicht fortgesetzt werden: 8070000c.
   bei Corel.Interop.VGCore.LayerClass.ImportEx(String FileName, cdrFilter Filter, StructImportOptions Options)
   bei Latex4CorelDraw.LatexDialog.generateEquation(Boolean createShape)
   bei Latex4CorelDraw.LatexDialog.buttonOk_Click(Object sender, EventArgs e)
   bei System.Windows.Forms.Control.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnClick(EventArgs e)
   bei System.Windows.Forms.Button.OnMouseUp(MouseEventArgs mevent)
   bei System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
   bei System.Windows.Forms.Control.WndProc(Message& m)
   bei System.Windows.Forms.ButtonBase.WndProc(Message& m)
   bei System.Windows.Forms.Button.WndProc(Message& m)
   bei System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)


************** Geladene Assemblys **************
mscorlib
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3130.0 built by: NET472REL1LAST_B.
    CodeBase: file:///C:/Windows/Microsoft.NET/Framework64/v4.0.30319/mscorlib.dll.
----------------------------------------
CrlInterop
    Assembly-Version: 0.0.0.0.
    Win32-Version: 20.1.0.708.
    CodeBase: file:///c:/Program%20Files/Corel/CorelDRAW%20Graphics%20Suite%202018/Connect64/CrlInterop.dll.
----------------------------------------
PresentationFramework
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3081.0.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.dll.
----------------------------------------
WindowsBase
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3081.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/WindowsBase/v4.0_4.0.0.0__31bf3856ad364e35/WindowsBase.dll.
----------------------------------------
System.Core
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3081.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Core/v4.0_4.0.0.0__b77a5c561934e089/System.Core.dll.
----------------------------------------
System
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3062.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System/v4.0_4.0.0.0__b77a5c561934e089/System.dll.
----------------------------------------
PresentationCore
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3081.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_64/PresentationCore/v4.0_4.0.0.0__31bf3856ad364e35/PresentationCore.dll.
----------------------------------------
System.Xaml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3081.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xaml/v4.0_4.0.0.0__b77a5c561934e089/System.Xaml.dll.
----------------------------------------
System.Configuration
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3062.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Configuration/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.
----------------------------------------
System.Xml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3062.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
VstaInterop
    Assembly-Version: 20.1.0.708.
    Win32-Version: 20.1.0.708.
    CodeBase: file:///C:/Program%20Files/Corel/CorelDRAW%20Graphics%20Suite%202018/Programs64/VstaInterop.DLL.
----------------------------------------
FitObjectsToPath
    Assembly-Version: 1.1.0.0.
    Win32-Version: 1.1.0.0.
    CodeBase: file:///C:/Users/Thomas/AppData/Roaming/Corel/CorelDRAW%20Graphics%20Suite%202018/Draw/ExtensionsUnpacked/x64/27497c18-7f70-4975-9e15-b9c94e309f10/1.0.3/unpacked/content/FitObjectsToPath.CorelAddon.
----------------------------------------
BorderAndGrommet
    Assembly-Version: 1.1.0.0.
    Win32-Version: 1.1.0.0.
    CodeBase: file:///C:/Users/Thomas/AppData/Roaming/Corel/CorelDRAW%20Graphics%20Suite%202018/Draw/ExtensionsUnpacked/x64/ed11c5a7-6eb7-42b8-bebb-d54fb3f95e5d/1.0.1/unpacked/content/BorderAndGrommet.CorelAddon.
----------------------------------------
Latex4CorelDraw
    Assembly-Version: 1.0.0.0.
    Win32-Version: 1.0.0.0.
    CodeBase: file:///C:/Program%20Files/Corel/CorelDRAW%20Graphics%20Suite%202018/Programs64/Addons/Latex4CorelDraw/Latex4CorelDraw.dll.
----------------------------------------
Corel.Interop.VGCore
    Assembly-Version: 20.1.0.708.
    Win32-Version: 20.1.0.708.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/Corel.Interop.VGCore/v4.0_20.1.0.708__e4835428e22ad6f9/Corel.Interop.VGCore.dll.
----------------------------------------
System.Windows.Forms
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3062.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms/v4.0_4.0.0.0__b77a5c561934e089/System.Windows.Forms.dll.
----------------------------------------
System.Drawing
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3062.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Drawing/v4.0_4.0.0.0__b03f5f7f11d50a3a/System.Drawing.dll.
----------------------------------------
PresentationFramework.Aero2
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3062.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework.Aero2/v4.0_4.0.0.0__31bf3856ad364e35/PresentationFramework.Aero2.dll.
----------------------------------------
ScintillaNET
    Assembly-Version: 2.6.0.0.
    Win32-Version: 2.6.0.0.
    CodeBase: file:///C:/Program%20Files/Corel/CorelDRAW%20Graphics%20Suite%202018/Programs64/Addons/Latex4CorelDraw/ScintillaNET.DLL.
----------------------------------------
System.Windows.Forms.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.2558.0 built by: NET471REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Windows.Forms.resources/v4.0_4.0.0.0_de_b77a5c561934e089/System.Windows.Forms.resources.dll.
----------------------------------------
Microsoft.GeneratedCode
    Assembly-Version: 1.0.0.0.
    Win32-Version: 4.7.3062.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/System.Xml/v4.0_4.0.0.0__b77a5c561934e089/System.Xml.dll.
----------------------------------------
PresentationFramework-SystemXml
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3062.0.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationFramework-SystemXml/v4.0_4.0.0.0__b77a5c561934e089/PresentationFramework-SystemXml.dll.
----------------------------------------
PresentationCore.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.2558.0 built by: NET471REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/PresentationCore.resources/v4.0_4.0.0.0_de_31bf3856ad364e35/PresentationCore.resources.dll.
----------------------------------------
UIAutomationTypes
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.3081.0 built by: NET472REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/UIAutomationTypes/v4.0_4.0.0.0__31bf3856ad364e35/UIAutomationTypes.dll.
----------------------------------------
mscorlib.resources
    Assembly-Version: 4.0.0.0.
    Win32-Version: 4.7.2558.0 built by: NET471REL1.
    CodeBase: file:///C:/Windows/Microsoft.Net/assembly/GAC_MSIL/mscorlib.resources/v4.0_4.0.0.0_de_b77a5c561934e089/mscorlib.resources.dll.
----------------------------------------

************** JIT-Debuggen **************
Um das JIT-Debuggen (Just-In-Time) zu aktivieren, muss in der
Konfigurationsdatei der Anwendung oder des Computers
(machine.config) der jitDebugging-Wert im Abschnitt system.windows.forms festgelegt werden.
Die Anwendung muss mit aktiviertem Debuggen kompiliert werden.

Zum Beispiel:

<configuration>
    <system.windows.forms jitDebugging="true" />
</configuration>

Wenn das JIT-Debuggen aktiviert ist, werden alle nicht behandelten
Ausnahmen an den JIT-Debugger gesendet, der auf dem
Computer registriert ist, und nicht in diesem Dialogfeld behandelt.

tomtitom avatar Jul 31 '18 07:07 tomtitom

Can you take a look at:

C:\Users<your-user-name>\AppData\Roaming\Latex4CorelDraw

and check if there is a file teximport.pdf

janbender avatar Jul 31 '18 07:07 janbender

No, there is no teximport.PDF (but there is teximport.tex, .dvi, .png, and .ps) Thank you for your help!!

tomtitom avatar Jul 31 '18 07:07 tomtitom

Can you check if in the Miktex path (in settings) there is a ps2pdf.exe?

janbender avatar Jul 31 '18 07:07 janbender

Yes, that file (ps2pdf.ext) is there (c:\Program Files\Miktex\miktex\bin), but there is something weird going on.

When I try to run ps2pdf teximport.ps teximport.pdf manually from within the command prompt inside the folder c:\Users\Thomas\AppData\Roaming\Latex4CorelDraw\ NO .pdf is created. Note however, that there is no error message, so the ps2pdf file is found.

Next, I created a teximport.pdf from the teximport.ps using some other program and then went back to your CorelDraw Addon. I thought it would just take the teximport.pdf that is now in that folder. However, that teximport.pdf got deleted and the initial error message (from two posts above) appeared.

Something must be wrong with my ps2pdf.... Thank you for locating the problem. Any clues though?

tomtitom avatar Jul 31 '18 07:07 tomtitom

Try to call it like this: ps2pdf.exe -dNoOutputFonts teximport.ps teximport.pdf

The LatexAddin cleans up the folder before generating a new one. So it deletes the pdf

janbender avatar Jul 31 '18 08:07 janbender

For me this works: "C:\Program Files\MiKTeX 2.9\miktex\bin\x64\ps2pdf.exe" teximport.ps teximport.pdf

janbender avatar Jul 31 '18 08:07 janbender

I don't have an x64 subfolder under ...\bin. Is that relevant?

I probably should get my ps2pdf running first. It might solve the whole issue.

tomtitom avatar Jul 31 '18 08:07 tomtitom

I also think that this is the problem.

janbender avatar Jul 31 '18 08:07 janbender

Problem solved/circumvented.

I uninstalled MikTeX and Ghostscript, and re-installed the newest versions of those programs (MikTeX 2.9.6753-x64, gs9.23). However, that changed nothing: ps2pdf still created no output.

That I am not the only one with this strange behavior of ps2pdf shows this question: stackoverflow:when-i-execute-ps2pdf-it-does-nothing. There, I also found the resolution to my problem.

In the file AddinUtilities.cs, I changed the line startProcess("cmd.exe", "/c \"" + mgr.SettingsData.miktexPath + "\\ps2pdf.exe\" -dNoOutputFonts teximport.ps teximport.pdf", true, false, out output); to startProcess("gswin64c.exe", "-o \"teximport.pdf\" -dNoOutputFonts -sDEVICE=pdfwrite teximport.ps", true, false, out output); and built the addon again. Then it worked.

I wanted to report this here in case someone else runs into the same issue -- although it does not really belongs to "Docker empty".

Dear Jan and everybody else on this list, thank you all so very much for your help! And, Jan, thank you for this awesome addon in the first place!!

tomtitom avatar Jul 31 '18 20:07 tomtitom