ClickOnce for PDF and OCR

General discussions about GdPicture.NET.
Post Reply
PeterH
Posts: 6
Joined: Sat Jul 24, 2010 11:08 am

ClickOnce for PDF and OCR

Post by PeterH » Sat Jul 24, 2010 11:17 am

When loading gdpicture.net app via clickonce, it is looking for:

GDPicture.Net.ocr.tesseract.dll
GDPicture.Net.pdf.gdpdfplug.dll

Copying these into the bin\release folders works fine for local install, but how do you do it with clickonce? I read the other articles and MSDN posts you had elsewhere (under search term for clickonce) but when you try to add these two .dll's as a reference it says that they are not a valid assembly or COM component.

Also, where is the best place to put the dictionary files for click-once deployment. I can use system.io.directory.getcurrentdirectory() to reference the subfolder. Does this work?

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ClickOnce for PDF and OCR

Post by Loïc » Sat Jul 24, 2010 3:20 pm

Hi,

Easy: Just add required files as "Existing Item" in your project: Right click on your project on the Solution explorer / Add / Existing Item... / Brows the the needed dll.

Then, you will be able to include the files through ClickOnce.

Hope this helps !

Loïc

PeterH
Posts: 6
Joined: Sat Jul 24, 2010 11:08 am

Re: ClickOnce for PDF and OCR

Post by PeterH » Sat Jul 24, 2010 9:43 pm

Thanks for prompt response. That worked for the DLL's but not for the dictionary files. But I got it to work.

For anyone in the future, to include those you have to select them in the solution explorer (as a group), choose properties, then change the build option to content and choose when you want it copied to output.

I would also like to contribute these links that helped me sucessfully deploy gdpicture.net app as clickonce tht works on Win/7-64-bit using vb.net express.

To target the app, you don't really have to edit the .proj file. You can add the "Configuration Manager" to the build menu and that allows you to set the target under "Active Solution Platform". However, this then sets your build target as "release" rather than "debug", so the debug.print no longer writes to the immediate window -- resolved by just changing back to "debug" while you are developing and then "release" before you publish as ClickOnce. Works well, but not easy to find all this information in one place.

http://www.experts-exchange.com/Program ... 85649.html

http://www.vbforums.com/showthread.php?t=601696

http://social.msdn.microsoft.com/Forums ... bbd9ba6d3a

User avatar
Loïc
Site Admin
Posts: 5881
Joined: Tue Oct 17, 2006 10:48 pm
Location: France
Contact:

Re: ClickOnce for PDF and OCR

Post by Loïc » Sat Jul 24, 2010 10:07 pm

Thank you very much for the contribution Peter :D

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests