English 中文(简体)
Showing PDF in VC# 2k8 [closed]
原标题:

We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.

Closed 7 years ago.

I m looking for a solution to display a PDF in C#. I found the AxAcroPDFLib Control, that works very fine and is sufficient.

But other people can t start my program, because they get an exception "AxInterop.AcroPDFLib" not found. But they have the latest Adobe PDF Reader installed. OS is Windows 7!

How can I fix that problem? (maybe add a acrobat dll to the working directory?) What s about the licence to use that?

Are there other possibilites/libraries/controls to show a PDF? Maybe under LGPL licence?

Thanks!

最佳回答

Are you sure you sent your interop assembly with your original program?

问题回答

This is a little out there, but you could try using the WebBrowser control and point it to a HTML page that has tag pointing to your file.

Also see http://www.pdftron.com/. It is a commercial product, they have a custom pdf viewer as one of their samples.

HTH

Sumatra PDF is a small, light weight and free PDF viewer (not a control). You could make your PDF viewable by launching it in Sumatra PDF. I don t think it will allow you to embed a viewer in a form as a control however.

What about http://live.gnome.org/PdfMod? They have a Windows port. And I believe using it you can go without Adobe Reader.





相关问题
Anyone feel like passing it forward?

I m the only developer in my company, and am getting along well as an autodidact, but I know I m missing out on the education one gets from working with and having code reviewed by more senior devs. ...

NSArray s, Primitive types and Boxing Oh My!

I m pretty new to the Objective-C world and I have a long history with .net/C# so naturally I m inclined to use my C# wits. Now here s the question: I feel really inclined to create some type of ...

C# Marshal / Pinvoke CBitmap?

I cannot figure out how to marshal a C++ CBitmap to a C# Bitmap or Image class. My import looks like this: [DllImport(@"test.dll", CharSet = CharSet.Unicode)] public static extern IntPtr ...

How to Use Ghostscript DLL to convert PDF to PDF/A

How to user GhostScript DLL to convert PDF to PDF/A. I know I kind of have to call the exported function of gsdll32.dll whose name is gsapi_init_with_args, but how do i pass the right arguments? BTW, ...

Linqy no matchy

Maybe it s something I m doing wrong. I m just learning Linq because I m bored. And so far so good. I made a little program and it basically just outputs all matches (foreach) into a label control. ...

热门标签