Medya Worksis
Medya Worksis

Reputation: 21

How can I use the native pdf reader in windows 8 metro app?

I want to make a pdfreader with the native pdf reader in Windows 8 (consumerpreview version). I find a dll (Microsoft.LightSwitch.Design.Extensions.Reader) Is this the dll that I can use ?

Upvotes: 2

Views: 2773

Answers (2)

John Moody
John Moody

Reputation: 9

Microsoft.LightSwitch.Design.Extensions.Reader is not native, it's a WinRT library, its PE header reveals its real identity.

You can use the freeware PDF Reader for Windows 8, or its DLL for your development.

http://www.pdfeight.com

Upvotes: 0

Filip Skakun
Filip Skakun

Reputation: 31724

It's not likely the pdf library is exposed in any way. An earlier question on MSDN forums suggested opening a pdf file with the default program associated with it like this:

Windows.Storage.StorageFile file =
    await Windows.ApplicationModel.
        Package.Current.InstalledLocation
            .GetFileAsync(@"Images\test.pdf");
Windows.System.Launcher.LaunchDefaultProgramForFile(file);   

Upvotes: 1

Related Questions