Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Docker empty #4

Open
Leucit opened this issue May 15, 2017 · 43 comments
Open

Docker empty #4

Leucit opened this issue May 15, 2017 · 43 comments

Comments

@Leucit
Copy link

Leucit commented May 15, 2017

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?

@janbender
Copy link
Member

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

@Leucit
Copy link
Author

Leucit commented May 17, 2017

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

@lgabs
Copy link

lgabs commented May 24, 2017

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

@willdfonseca
Copy link

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.

@janbender
Copy link
Member

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

@tomtitom
Copy link

tomtitom commented Sep 8, 2017

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

@janbender
Copy link
Member

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".

@tomtitom
Copy link

tomtitom commented Sep 8, 2017

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
Copy link

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

@janbender
Copy link
Member

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.

@Leucit
Copy link
Author

Leucit commented Sep 18, 2017

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.

@janbender
Copy link
Member

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

@tomtitom
Copy link

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.

@rhoeben
Copy link

rhoeben commented Nov 21, 2017

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.

@raverank
Copy link

raverank commented May 9, 2018

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

@janbender
Copy link
Member

Did you try to install it in this way:

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

@raverank
Copy link

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

@janbender
Copy link
Member

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.

@nspo
Copy link

nspo commented May 19, 2018

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/

@janbender
Copy link
Member

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

@tomtitom
Copy link

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.

@janbender
Copy link
Member

Can you take a look at:

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

and check if there is a file teximport.pdf

@tomtitom
Copy link

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

@janbender
Copy link
Member

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

@tomtitom
Copy link

tomtitom commented Jul 31, 2018

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?

@janbender
Copy link
Member

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
Copy link
Member

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

@tomtitom
Copy link

tomtitom commented Jul 31, 2018

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.

@janbender
Copy link
Member

I also think that this is the problem.

@tomtitom
Copy link

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!!

@rasa98
Copy link

rasa98 commented Jul 31, 2018

image
i get this error ? any help

@rasa98
Copy link

rasa98 commented Jul 31, 2018

actually i just open option tab and put the path

@rasa98
Copy link

rasa98 commented Aug 1, 2018

actually i need help on one pc cd x7 it works perfectly, but on others i couldnt do it only barely did it on coreldraw x8 but the font is not the same as in preview any clue??
image

@evaldmujer
Copy link

Hi. The above recent dialog suggest that you solved this one. Can you give a set of instructions for us less-tech-savvy folks? I followed the original instructions and unblocked the .dll files but have an empty Latex docker. I'm on Win 10, 64x CorelDRAW 2017.
Thank
E

@tomtitom
Copy link

@evaldmujer -- from what other people have written on this list and from my own experience, I do think that you will actually have to build the addon yourself from the provided source code. There seems to be some reason, which nobody has understood yet, that Corel does not accept "foreign" builds, or builds that were not done with precisely the same combination of operation system and version of Corel.

Being a user and not a developer, it took me a long time to convince myself to start the process, but in the end it was all worth it... Well, I downloaded "Visual Studio Community 2017" from https://visualstudio.microsoft.com/ - it is free. Downloaded the Latex4CorelDRAW-code from here unzipped it and opened it in Visual Studio. Then "build the project" via the build menu.

Then follow the installation instructions that you have already followed, but now using the files that where just created for you in the folder bin\Debug\ within the folder where you unzipped the source code.

I hope this will go through...

@evaldmujer
Copy link

Thanks, @tomtitom I tried that but when I went to build it I got lots of errors which I don't know how to fix, being a rank amateur :(. The errors look like this:
1>------ Build started: Project: Latex4CorelDraw, Configuration: Debug Any CPU ------
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "c:\program files\corel\coreldraw graphics suite x8\programs64\Assemblies\Corel.Interop.VGCore.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash().
1>C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\Microsoft.Common.CurrentVersion.targets(2110,5): warning MSB3106: Assembly strong name "c:\program files\corel\coreldraw graphics suite x8\programs64\Assemblies\Corel.Interop.VGCore.dll" is either a path which could not be found or it is a full assembly name which is badly formed. If it is a full assembly name it may contain characters that need to be escaped with backslash(). Those characters are Equals(=), Comma(,), Quote("), Apostrophe('), Backslash().
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(5,7,5,12): error CS0246: The type or namespace name 'Corel' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\DockerUI.xaml.cs(15,15,15,20): error CS0246: The type or namespace name 'Corel' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(11,35,11,40): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(32,54,32,59): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(47,43,47,48): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(55,48,55,53): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(60,46,60,51): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(68,56,68,61): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(76,58,76,63): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(84,51,84,56): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(89,46,89,51): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\ShapeTags.cs(98,47,98,52): error CS0246: The type or namespace name 'Shape' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\LatexFileGenerator.cs(21,16,21,21): error CS0246: The type or namespace name 'Corel' could not be found (are you missing a using directive or an assembly reference?)
1>C:\Program Files\Corel\CorelDRAW Graphics Suite 2017\Programs64\Addons\Latex4CorelDRAW-master\DockerUI.xaml.cs(61,37,61,42): error CS0246: The type or namespace name 'Corel' could not be found (are you missing a using directive or an assembly reference?)
========== Build: 0 succeeded, 1 failed, 0 up-to-date, 0 skipped ==========

It looks like it's the same two error repeatedly, so a couple of hints should help. Any assistance would be appreciated!
E

@tomtitom
Copy link

See, this is where I was lucky and got no errors...

Trying to interpret the first error message, I suppose you should check whether there is a file called "Corel.Interop.VGCore.dll" in the folder "c:\program files\corel\coreldraw graphics suite x8\programs64\Assemblies" If it is not present, then your Corel installation is not standard.

In fact, your error messages have both kinds of paths

  • ..\coreldraw graphics suite x8...
  • ..\CorelDRAW Graphics Suite 2017..

It seems to me that you need to clean up the project file "Latex4CorelDRAW.csproj", so that the paths all point to the same and correct installation of CorelDraw.

@sartrism
Copy link

sartrism commented Nov 20, 2018

I got to make this work with CorelDraw Graphics Suite 2018 & Windows 10 with TexLive.

First I failed because I tried this with Home & Student version which obviously does not support custom add-ons. You need a higher version.

After having Graphics Suite (64bit), I had to compile this myself because it does not contain "Latex4CorelDraw.dll" file in the first place.

Downloaded Visual Studio, there were three things I had to change.
(1) Latex path - Since I use texlive instead, I manually changed the variable miktexpath in the settings.
(2) Corel.Interop.VGCore.dll path - It is set to X8 path, so I had to add this myself in the reference panel of VS.
(3) Unblock *.resx - theses were blocked as DLL files by default, so interrupted the build.

And then build the solution - you get Latex4CorelDraw.dll file as the output. Copy this as well as included SciLexer.dll files (this was necessary!) to the main folder. In the end, you have to have 4 dll files under the folder named Latex4Corel.

Hope my experience helps someone struggling with this.

@willdfonseca
Copy link

@sartrism could you share your build solution?

@nspo I have tested here your build and is working fine.

I think would be cool to maintain several builds for different versions... not everybody has the skill/power to create new builds.

Best regards.

@Schimpf-Christian
Copy link

Hey!

I just wanted to inform you that I use CorelDraw 2019 (64bit) and had the same problem with the empty docker initially when I just copied the files.
I rebuilt the latest version with Visual Studio 2019 (still targeting .net Framework 4) after making two small changes:

  1. Corrected the reference to "Corel.Interop.VGCore" (the folder was wrong)
  2. Deleted the post-build script and copied the files manually to
    "\Program Files\Corel\CorelDRAW Graphics Suite 2019\Programs64\Addons\Latex4CorelDraw"

Thanks for the great Addon, it's very helpful. It's especially interesting for the scientific community as we deal a lot with figures including formulas. I will do my best to share your repository with as many people as possible.

Best regards.

@willdfonseca
Copy link

willdfonseca commented Apr 16, 2020 via email

@ZiadHatab
Copy link

Hi!

I have CorelDRAW 2019 (64-Bit) installed and I also re-built the add-on with Visual Studio 2019, but I'm still facing the same problem: the docker is empty. I have changed the reference location of "Corel.Interop.VGCore" to "D:\Program Files\Corel\CorelDRAW Graphics Suite 2019\Programs64\Assemblies\Corel.Interop.VGCore.dll" (I have installed the software in D drive)

But still no success. The building of the add-on went successfully in Visual Studio 2019, but when I copy the generated folder to CorelDRAW, the docker remain empty.

Any help is appreciated!

Also, does anyone know if there are any alternatives? I just want to type some equations and I actually don't care if it is latex or something else. Is there another plug in that does the job?

Best,
Ziad

@ZiadHatab
Copy link

OK, it worked...

It turned out that I didn't copy all necessary files, because I commented the post-build portion. I fixed it by following the exact instructions in the repository which is to change any CorelDraw path to yours. At the end the following files should be copied to your corelDraw Addon folder:
UserUI.xslt (.\bin\Debug\Latex4CorelDraw)
AppUI.xslt (.\bin\Debug\Latex4CorelDraw)
ScintillaNET.xml (.\bin\Debug\Latex4CorelDraw)
Latex4CorelDraw.pdb (.\bin\Debug\Latex4CorelDraw)
ScintillaNET.dll (.\bin\Debug\Latex4CorelDraw)
SciLexer64.dll (.\ScintillaNET)
SciLexer.dll (.\ScintillaNET)
Latex4CorelDraw.dll (.\bin\Debug\Latex4CorelDraw)
CorelDrw.addon (.\bin\Debug\Latex4CorelDraw)

The ones in debug folder are the compiled files, the other two were already provided.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests