PDFsharp & MigraDoc Foundation
https://forum.pdfsharp.net/

What is necessary for client installation?
https://forum.pdfsharp.net/viewtopic.php?f=2&t=842
Page 1 of 1

Author:  peymoore [ Wed Aug 19, 2009 8:03 pm ]
Post subject:  What is necessary for client installation?

I'm working in a pilot project, exploring the use of PDFSharp. I took the HelloWorld code and made some changes to it to print some text before experimenting with more in depth changes. I compiled the HelloWorld application and that works fine as well. When I try and then run this compiled application on a client machine to test (.Net 2.0 installed, but no VS) it fails. I just put the HelloWorld.exe and PDFSharp.dll on the client machine. I tried using regasm.exe to register PDFSharp.dll, but it says that no libraries registered.

What is necessary to install on a client to get this to run?

Author:  Thomas Hoevel [ Mon Aug 24, 2009 8:15 am ]
Post subject:  Re: What is necessary for client installation?

You should deploy all assemblies found in the "HelloWorld\bin\Release" directory (or in the bin\Release directory of your project respectively).

The original HelloWorld only needs HelloWorld.exe and PdfSharp.dll.
Just copy them to the same directory (any directory) on the client machine. No registration required (XCopy deployment works).

But for end-user applications you'd better create a Setup that checks the prerequisites (.NET Framework etc.).

Author:  cbdinh [ Mon Nov 22, 2010 3:50 pm ]
Post subject:  Re: What is necessary for client installation?

How can I deploy PdfSharp for VBscript development? I copied all DLL files to system32 directory and rebooted the PC but Windows still cannot recognize PdfDocument type. Is there any way to get the DLLs installed properly on Windows for VBscript?. Does anybody use PdfSharp in VbScript code? Thanks in advance for your help. DCB.

Author:  Thomas Hoevel [ Mon Nov 22, 2010 4:25 pm ]
Post subject:  Re: What is necessary for client installation?

cbdinh wrote:
I copied all DLL files to system32 directory and rebooted the PC but Windows still cannot recognize PdfDocument type.

That's how it shall be IMHO.

What are you trying to achieve? Maybe Adobe Reader will help ...

The PDFsharp DLLs allow other applications to open PDF files. But the DLLs won't register to handle PDF files themselves.

Author:  cbdinh [ Mon Nov 22, 2010 7:40 pm ]
Post subject:  Re: What is necessary for client installation?

Thanks Thomas for you quick response. I am looking for sample code/way to add bookmarks onto existing pdf documents using VbScript. All sample codes are written in VB. I need something simple in VBS to start with. I tried CS-Script after posting the question (http://www.csscript.net/) and it worked. However I still prefer to use VBS if it is possible because I don't need to install anything else on the machine and I almost know nothing about C#. What I am getting stuck now is to make PdfSharp classes visible to Wscript. It looks like copying DLL files to system32 won't work. DCB.

Page 1 of 1 All times are UTC
Powered by phpBB® Forum Software © phpBB Group
https://www.phpbb.com/