Opening a PDF file in Admin mode from a windows forms application (C#)

Hi,
I need to open a pdf file using Windows Application. I have used the below code launch the pdf files.
Process prc = new Process();
            prc.StartInfo.FileName = "cmd.exe";
            Environment.CurrentDirectory = @"C:\SamplePDF\";
            prc.StartInfo.Arguments = " /C sample.pdf";
            prc.StartInfo.UseShellExecute = false;
            prc.StartInfo.CreateNoWindow = true;
            prc.Start();
This code is working fine without admin mode. But while running the output exe from bin folder with admin mode(right click the exe and choose "Run as Administrator"), pdf files are not launching . But its opened in the background application and I can see this from windows task manager.
Could anyone please help me on this issue ? Is there any other ways to launch a pdf file in admin mode ?
-Balaji.

Thank you for replaying so soon..
Well you are right by using a widget and etc.. but the problem is that I have been told that this application should open a PDF file that has bookmarks to each chapter of the text and one can make a search on this text by using pdf search.. So I do not have any other choice than opening a pdf :D and my time is unfortunately limit.
For solving the problem that the user may not have PDF reader.. well I have been told that user should install the pdf reader, so in my application package I am putting the installation file of PDF.
But going back to my problem.. I guess is someway I have to get the OS type of the user and I have to do a SWITCH or something on the OS type and then change the content of the Runtime.exec(). But the question is how can I get the OS type and what should I change in Runtime.exec().
So now any idea? any solution??

Similar Messages

  • I cannot open some pdf files online with Reader XI (like sample forms in Help section).

    I cannot open some pdf files online with Reader XI (like sample forms in Help section or IRS.gov or credit card statements).  I have uninstalled Reader XI, cleaned and reinstalled.  I have no problem right-clicking and downloading and then viewing the files.  No problem viewing acrobat files.  I'm runnnig Windows 7,  IE9.     I can acces them through Chrome.

    RESOLVED
    I found two suspect programs that were installed within the last 48-hrs that may have caused the problem
    1) - Libre Office - latest update.  This is a fork of Open Office.  (unlikely)
    2) - ManyCam video manipulation software  (likely)
    Following info here, I opted to try to open an Adobe PDF file that was on my hard drive.  When I did, it refused and IE10 gave me an ActiveX error (AHA!!).   When I checked the installation of ManyCam, it had installed a version of DirectX that may have over-written the resident versions or disabled them somehow.
    I uninstalled ManyCam but left Libre Office's update in place, then I ran a system restore from a point 24-hrs before the installations.
    This resolved the problem 100%.
    So, the suggestion here is that there may be one or more program in the wild that is interupting the ActiveX or DirectX systems.  They may be running or installing an older version.  In this case it appears the handlers were broken.
    Once the system restore had completed I was able to open Adobe PDF files within my IE10 browser from the Internet as well as open PDF files from my hard drive.
    Note that this same issue also clearned up a problem I was having with the Comodo Dragon web browser, which is a fork of the Chrome project.  Once I eliminated the suspect program and ran the system restore all was well.  In the instance of the Comodo browser it was unable to open or reach anything - dead white screen below the menu bar.
    So my suggestion would be to take an inventory of recent program installations, remove/uninstall them, run system restore from a date before the suspect programs were added, and see what happens.  In my case that fixed the problem.

  • How to open a pdf file in Acrobat Reader from a webdynpro application

    Hi,
    I need to open a pdf file stored in the server from a web dynpro application. The pdf needs to be opened in the stand alone reader at the client and not in a reader embedded in the browser.
    Cheers,
    Krish

    Hello,
    I'm fairly new to webdynpro and am trying to  render a pdf via webdynpro.
    The webdynpro application runs but I see only a blank screen with the title.Is there any specific setting I need to do in order to view this pdf?I have used the FileDownload-UIElement.
    Thanks in advance
    Biraj

  • On a web page when I open a pdf file it says download on the window and then suddenly starts opening multiple firefox blank pages I cant stop it except by using force quit - help

    multiple blank firefox pages open one after the other, can't stop them. only solution is to use "force quit" I am on an iMac. Never had this until today. Has happened now 3 times! its scary/
    == This happened ==
    Just once or twice
    == I clicked to open a pdf file on a web page (i've done this many times before on this web page with no problem) ==
    == User Agent ==
    Mozilla/5.0 (Macintosh; U; Intel Mac OS X 10_6_3; en-us) AppleWebKit/531.22.7 (KHTML, like Gecko) Version/4.0.5 Safari/531.22.7

    See [[Firefox keeps opening many tabs or windows]]
    You can have infinite tabs opening if you have selected Firefox as the application to handle a file if you get an ''Open with'' download window.
    Firefox should not be selected as the application to handle a file and you have to remove the action that is associated with that file type.
    You can delete [http://kb.mozillazine.org/mimeTypes.rdf mimeTypes.rdf] in the [http://kb.mozillazine.org/Profile_folder_-_Firefox Profile Folder] to reset all actions or set that action in Tools > Options > Applications to 'Always Ask'.
    See http://kb.mozillazine.org/File_types_and_download_actions ("File handling in Firefox 3 and SeaMonkey 2" and "Reset Download Actions")

  • IDE /Tool which can open  a jpd file stored in UNIX  from our windows deskt

    wanted to know which IDE /Tool can open a jpd file stored in UNIX from windows desktop

    Hi Antônio G,
    Based on your description, I’m afraid that it is not the correct forum for this issue, since this forum is to discuss:
    Visual Studio WPF/SL Designer, Visual Studio Guidance Automation Toolkit, Developer Documentation and Help System, and Visual Studio Editor.
    To make this issue clearly, would you mind letting us know more information about this issue? Which language are you using? Which kind of app are you developing?
    Reference:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/a9e1857d-dd5b-443b-8633-397aea6e7b8c/help-on-properly-handling-wmf-mmanisotropic-image-in-rtf-file-when-extracted?forum=csharpgeneral
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/5b99d331-ef56-4d60-bf12-3e3b70783376/how-to-convert-a-hex-string-save-in-a-rtf-file-into-an-image-jpg-or-bmp?forum=csharpgeneral#a9219408-f73b-4e98-a9d8-7a1e0f20cdd9
    Maybe you could select the language development forum for this kind of issue. If not, please let me know more information about it, I will help you find a more appropriate forum.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I have recently downloaded Adobe Reader 10.0 but when in firefox on the internet I want to open a PDF file on Company Announcements from Sydney Morning Herald Share Market news all I get is a black screen - why?

    Previously when I had Adobe Acrobat 8 on my computer when I clicked on the PDF file on the Stock Exchange through Firefox It would immediately open the file. I have tried to reload the earlier version of Adobe Acrobat but it they will not allow me to do so.

    If anyone is reading this still looking for what caused the issue and how to fix it here is what I discovered.
    The antivirus program our company uses, Bitdefender Antivirus Plus, was causing some of the PDF files not to open. After troubleshooting the different modules and settings the culprit was..
    Scan SSL in Privacy Control Settings. Turning it OFF solved the problem and all the PDF files that previously would not open now open just fine. This issue has been sent to Bitdefender for them to review. If you use a different antivirus program and are having this issue try locating the Scan SSL setting and see if turning it off solves the problem.

  • Help !! how can move up a PDF file to my mac from a windows pc via icloud ?

    i have scaned a document in PDF file in to my windows pc. now i would like to move up that document to my mac using icloud but i cant find any solution. ????

    With the iCloud windows software, you cannot do that. Try what Csound1 said, use a flashdrive.

  • I'm having problems using Firefox when opening up PDF files that are called from jsp.

    I'm trying to open my billing statement in pdf format. When I click on the link, Firefox 4 takes me to the dowload page and starts to download a readPDF.jsp file. How come Firefox is asking for that? When I use IE 7 I get no problems. Please advise on how to get Firefox to open jsp files automatically.

    I have same problem too

  • Open a pdf file located on Application Server from forms 10g

    Dear all,
    I want to open a pdf file which is stored in a folder on Application Server.
    I have the following codes but could not be able to open the file.
    1. host('rundll32 url.dll,FileProtocolHandler C:\REP012.pdf');
    in this code I mentioned the path on local machine which is okey.
    but the question is that how to open the file which is located in a folder on application server?
    the following code don't show and file or error:
    host('rundll32 url.dll,FileProtocolHandler /EMS/MANUALS/ACC001.PDF');
    This is the file on Application Server not on local machine.
    2. web.show_document('//EMS/MANUALS/ACC001.PDF/','_blank');
    This give HTTP 404 NOT FOUND error
    I think the problem is in path, how to mention the path of my Application Server file?
    Regards:
    Muhammad Nadeem

    Hi,
    Did you find a solution to this?
    We are running into the same problem where we need to open a file present on the application server (path /opt/webapps/applications/ISL/)
    When we try this from the local machine it works (path D:/forms) however it does not work while trying to open it from the application server.
    Regards,
    Pooja

  • Open Multiple PDF files from Production order/Routing

    Hi Everyone
    We are in ECC 6.0 environment. We have a scenario where multiple documents were attached to single operation and also at multiple operations. But when I was trying to open these PDF documents, only the last file was getting opened and closing the previous file. How can I open multiple PDF files at one time from Production order or Routing?
    Any help is appreciated.
    Regards
    Prasad

    Hi Prasad,
    from DMS standard I regret but such a functionality is not available. In the standard originals can be opened only one after another.
    I think for realising this functionality an individual modificatoin is necessary.
    Best regards,
    Christoph

  • Adobe Reader XI is not working. I have used the cleanup tool and reinstalled it. I try to open a .pdf file in the program the window will open and load all the tabs but I am never able to actually interact with them.

    I am unable to use adobe reader xi. I have tried to use the clean up tool and re install the reader. That doesn't seem to help. I go to open the pdf file in the reader and the window will load but I am not able to do anything past that point. Almost as if the program freezes once loaded I never get a not responding error until I open the task manager on the computer.

    Can you open Reader by itself?  If so, try disabling Protected Mode [Edit | Preferences | Security (Enhanced)].

  • MAC OSX version 10.5.1 and I can't seem to open any PDF - FILES HELP

    I am having a lot of frustrations opening any pdf files on Safari.
    I re-installed adobe acrobat reader 7.0.9 and nothing is happening.
    Everytime I attempt to open up a PDF file it's blank or black.
    Please help me
    don't know what's happening?
    Deena

    MAC OSX version 10.4.11 and I can't seem to open any PDF
    I'm having this problem as well. I have both Acrobat Professional 8.1.2 and Adobe Reader 8.1.2 installed with the proper internet plug-in, using OS 10.4.11. When I try to open a pdf file in Safari I get a window asking me to choose an application to open the file, but both applications are dimmed and cannot be selected. I have tried re-installing Acrobat Reader, but without success. In Firefox I simply get a blank, darkened window. __Previously, before I installed Leopard and was using Tiger, I had Acrobat Reader 7.0 as well as AR 8.0 installed, and I was only able to select AR 7.0, but it worked. Now nothing works. This is a serious problem that Adobe needs to address!

  • Adobe Reader 9 will not open any pdf files

    I am running Windows 7 and use Adobe Reder frequently. Never had a problem. Last week, whenver I try to open a PDF file, I get a warning box "Windows cannot access the specified device, path, or file. You may not have the appropriate permissions to access the item."
    The only thng that changed recently was a couple large Windows updates... I am always suspect when a large update occurs. I uninstalled the Reader and Download Manager and ree-installed themm. No change in performance.
    I checked the registry key - it looks correct based on other posts.
    Does anyone have any suggestions what else to try??

    I've got the same problem. I'll look forward to solving this on this thread.
    It really sucks- I have a ton of pdf files, and can't save them to Documents or send them out of the Adobe file.

  • Adobe freezes opening certain PDF Files

    Hi!
    We have a problem with the new Version Adobe Reader 9. When you open certain pdf files by double clicking them in Windows Explorer, Adobe Reader 9 Window opens and then freezes at 100% CPU load.
    Other pdf files are OK.
    Open Adobe Reader first and then choose File - Open works too.
    Common thing of both pdf files is that they were created out of Winword printing it against a pdf printer called "pdf x-change".
    Open the file with Version 8 or Foxit Reader works.
    Any hints?
    Greets
    mosurama

    Sorry, no solution - i can not force everybody in the world to use adobe acrobat. Another customer had exactly the same problem with another pdf that was created by someone else

  • Open pdf files in tabs in the same window

    Hi,
    Could we open many pdf files in tabs in the same window in stead of many standalone pdf files?
    In other word, open pdf files in tabs like in a web browser ! This is very handy feature which is already available in Foxit reader !
    It would a great too in adobe !
    Thanks

    Thanks for your replies.
    It is a great feautre in my view ! Why Adobe doesn't make it enable/disable feautre for who wants it or doesn't?
    I'm planning to switch to Foxit for this feature (it is faster also)!

Maybe you are looking for

  • Ipod problem (turning on/restrore)

    well i been having a problem with my ipod video its barely 3 months old and im having a problem that everytime i turn it off by holding the play key and after turning it on a message asking me to restore my ipod comes on so i usually have to reset th

  • I would like to mirror a movie on the tv but I also want to be able to do other things with out that being mirrored also how do I do this?

    I have nephews I am trying to enterain, while they love movies I have homework to do on my lap top. Is there any way of playing a movie  with out the rest of my work showing up on the screen? Thanks for any help Nikole

  • Creative Mixer Doesnt work after auto-upda

    So I recently Updated my SB Audigy 2 drivers (from the CD) to the ones supplied by creative auto update. It updated the ones that mentioned Audigy 2 | 4 drivers or something like that. Ever since I updated to that, my Mixer will no work anymore. Ever

  • Report an app

    Hi, There are apps made to steal the user. How could we report it? It should'n stay in the app store, pollution, and we still have some people paying! Example: iblacklist, by CXI Gaming... 90 advices telling it is just a fake... 90 people have payed

  • BAM Portal Source Code

    Hi, Can I get complete source code of out of the box BizTalk BAM Portal? Thanks and Regards, Sagar.