views:

241

answers:

1

Have anybody ever tried to create thumbnails/previews of MS Office files? I do not mean extract saved preview images inside the file, but actually create them. Would this even be doable?

Could one print to an image/pdf directly in code?

+2  A: 

In a general VB/C# application, add the MSword/MSexcel component and call the component to open the file you want. Then call one of the print functions with the parameters corresponding to first page etc.

This link shows how to open a .xls from C#

Crimson