0

Possible Duplicate:
Open PDF or Folder in Flash Player

In my VB windows application, user will upload the pdf files and i have to show it in a flash player.So, i want to convert the pdf into exe file,then i can easily play with flash player by using openwith dialog box by invoking following shell command.

Shell("rundll32.exe shell32.dll, OpenAs_RunDLL " & exePath);

But i dont know it is possible to convert pdf file into exe file through VB.If not please suggest me a good approach for play the pdf in flash player...

Or Is there any way to play the pdf files into flash player?

Community
  • 1
  • 1
Saravanan
  • 11,372
  • 43
  • 143
  • 213
  • Oh my god. Calling `rundll` via `Shell` is backwards. It’s like sending a text file from your application to notepad.exe and sending keys to the application to save it. First off, you can just call the WinAPI function in your code directly. But more importantly, you don’t need to, since you can just use the .NET framework: `Process.Start`. – Konrad Rudolph Oct 08 '12 at 12:01
  • 1
    Anyway, why do you want to use the flash player instead of the default PDF displayer? It’s highly recommended to use the user’s default application for a file instead of going through hoops to launch some other application. – Konrad Rudolph Oct 08 '12 at 12:05
  • 1
    VB6 or VB.Net? Your code sample is invalid in both. Please retag and update the question to suit. – Deanna Oct 08 '12 at 12:06

0 Answers0