PDFsharp & MigraDoc Foundation

PDFsharp - A .NET library for processing PDF & MigraDoc Foundation - Creating documents on the fly
It is currently Sun Jul 14, 2024 12:35 pm

All times are UTC


Forum rules


Please read this before posting on this forum: Forum Rules



Post new topic Reply to topic  [ 5 posts ] 
Author Message
PostPosted: Wed Aug 19, 2009 8:03 pm 
Offline

Joined: Wed Aug 19, 2009 7:48 pm
Posts: 1
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?


Top
 Profile  
Reply with quote  
PostPosted: Mon Aug 24, 2009 8:15 am 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
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.).

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 22, 2010 3:50 pm 
Offline

Joined: Mon Nov 22, 2010 3:39 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 22, 2010 4:25 pm 
Offline
PDFsharp Guru
User avatar

Joined: Mon Oct 16, 2006 8:16 am
Posts: 3101
Location: Cologne, Germany
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.

_________________
Regards
Thomas Hoevel
PDFsharp Team


Top
 Profile  
Reply with quote  
PostPosted: Mon Nov 22, 2010 7:40 pm 
Offline

Joined: Mon Nov 22, 2010 3:39 pm
Posts: 2
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.


Top
 Profile  
Reply with quote  
Display posts from previous:  Sort by  
Post new topic Reply to topic  [ 5 posts ] 

All times are UTC


Who is online

Users browsing this forum: No registered users and 45 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Privacy Policy, Data Protection Declaration, Impressum
Powered by phpBB® Forum Software © phpBB Group