Click here to Skip to main content
14,454,989 members
Rate this:
Please Sign up or sign in to vote.
See more:
I intend to usa a preview like Brad Smith did it in his article Preview Handlers Revisited | Brad Smith's Coding Blog[^] , but only in vb.net (VS2010, windows10). Of course I searched a lot in Google and other. I also translated Brad's code into vb.net, but somehow it will not display the preview. Now I am really out of my ability ( I am not a professional programmer, only for private application or doing some small programms for my company. I know there are plenty of packages to buy, but I am looking for a free solution. So if somebody can provide me a vb.net code, which I can implement into my application (display documents (Office)in a database program) it will help me so much. At the Moment I do it by converting e.g. docs, xlsx into pdf and then display it in the Webbrowser, this works well, but is too slow. As said I am looking for a solution like in the Windows Explorer preview.
I can also send my translated code from Brads article, if somebody is interested to take a look on it.
I hope so much that somebody can help me.

What I have tried:

document Office previewhandler vb.net like explorer
Posted
Updated 14-Feb-20 3:01am
v2
Comments
Richard Deeming 14-Feb-20 8:31am
   
If you can't translate the code successfully, then create a C# class library containing the original code, and reference that from your VB.NET application.
Member 12096497 14-Feb-20 9:26am
   
That’s a good idea. At the moment I have no idea how to do, but I will try it. Do I have something to consider?
Member 12096497 15-Feb-20 2:01am
   
Richard, That was really simple to do. Thanks so much

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)




CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100