Opening pdf from c# external application

I tried to get a pdf file to open systematically in the window of my Winform application with the following code:

AcroApp app = new AcroApp();

AcroAVDoc avDoc = new AcroAVDoc();

MyPath = "C:\\Users\\Jeff\\SkyDrive\\";

String myFile = "Child Support card, Lake County.pdf";

Boolean success = pdfDoc.Open (myPath + myFile, myFile);

App. Lock ("program Jeff");

Boolean success = avDoc.OpenInWindowEx (myPath + myFile, this.) Handle.ToInt32 (),

(int) Acrobat.AVOpenParams.AV_DOC_VIEW, 1, 0, (short) Acrobat.PDViewMode.PDFullScreen,.

(short) Acrobat.AVZoomType.AVZoomFitWidth, 0, 0, 0);

Boolean success is app. Show();

MessageBox.Show (success. (ToString());

avDoc.Close (0);

App. UnlockEx (the "program of Jeff");

For some reason, it doesn't work most of the time.  The Form1 window is empty, even if sometimes it contains the pdf file.  I tried to deal with this, but I have a most important question first.  Even if I do work properly, will it work on computers where end-users have Acrobat Reader?  If this isn't the case, I need to find another way.  If it works, I need to keep the debugging (if anyone has any suggestions)?

He called Adobe Reader now. But the answer is no. The SDK describes a different OLE interface available in Reader.

Tags: Acrobat

Similar Questions

  • There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    Hi, I m a bit new in LabVIEW and I'd like to ask a few questions...

    -There is a possibility to run Labview projects or to set them off from a batch file or if the exist and the ability to control labview or run it from an external application?

    -One API PI or raspberry beaglebone exists for LabVIEW?

    -Power supply Wich can recommend you control with LabVIEW? (some chip solution witn 0 - 30v / 0 - 3A DC)

    Thank you very much for your advice!

    Best regards

    Elena

    Elena,

    I know raspberry, so no comment on that.

    For the rest:

    -Do you want to create tools for developers? If so, we must look in the API of project VI and VI server. If this isn't the case, please compile your application LV as executable and call this one using a batch file.

    -LV prefer specific supplies. LV is a programming language. There are several power supply providers (including OR) which provide directly the LV API for their power supplies. So, essentially, the approach is:

    1. choose food that serves your needs.

    2. check if the power supply has a standard interface for programming (such as Ethernet, GPIB, or if the power supply is PXI, is already providing a programming interface!)

    3. check if the LV API (so-called "instrument driver") is available for the device. In the case of a PXI system, get you a device driver (for example NI DCPower).

    4. check if the LV samples are available (for example in the Finder for example LV once you have installed the driver).

    Norbert

  • I have a new computer and try opening PDFs from other web sites. They are not open. What should I do to open these files?

    I have a new computer and try opening PDFs from other web sites. They are not open. What should I do to open these files?

    Thank you for your help, but I thought about it.  It was very simple & silly, something I would have thought from the outset. I had to add permissions to the pop-up blocker. Silly me had a "blonde moment"... no offense to blondes, just using the cliché. Laughing out loud!!

  • Cannot open PDFs from the web

    Hello; I was always able to open PDFs from the web without saving them first. Today (15/05/2015), I got a notice that an update was available for acrobat. I downloaded, updated and rebooted the system, everything went well, but now I can't open pdf from the web. I can open only so if I register the first and then open the saved file. Can anyone help? Adobe offers me no support by phone for this product.

    Thank you

    Hello; the Acrobat version is the version of the update for the Acrobat software the XI is 11.0.11 that the operating system is Windows 7, the browser is Microsoft explore version 11 the pdf plugin is enabled in the browser.

    I received a few updates to acrobat in the past, but never had any problems after updates, that's my first problem ever.

    Thank you

  • Lauch PowerCLI script from an external application

    Hello

    I work with an external application to scheduling. It allows to launch command line scripts. I wrote a ps1 script that creates a new guest VM. I want to be able to call this script - the planning application CreateVM.ps1 however I am not sure of the command line to use. Launch of Powershell is not a problem, but it will launch the normal Powershell that does not give me access to commands PowerCLI. Anyone know how to run a script of ps1 PowerCLI guest BACK from a .BAT file?

    Thank you very much

    Ben

    You can add the snap-in on the first line of the script:

    Add-PSSnapin VMware.VimAutomation.Core

    or use the following to run your script:

    C:\WINDOWS\system32\windowspowershell\v1.0\powershell.exe - PSConsoleFile "C:\Program Files\VMware\Infrastructure\VIToolkitForWindows\vim.psc1" "& C:\CreateVM.ps1 '"

    If you found this information useful, please consider the allocation of points for correct or helpful.

    Alan Renouf

    http://Virtu-al.NET

  • OE will not open emails from outside the application

    I use XP and OE. Suddenly, I started having Live Mail instead of open emails from OE I copied files outside the mail store.

    THUS, instead of simply getting rid of Live (I never use it) I changed the 'open with' back to EO. But he did open OE, not real email. It has been the opposite - I could open the email regardless.

    Now that I've removed the Live, I'm stuck with the change I made. DOH.

    Can someone tell me how to make an email open with OE again. Addition to the line of command after .exe or something?

    Thank you

    'S done it by gremlins. Happy that you fixed it.

  • Why all of a sudden you open PDF from Outlook in Firefox? How to disable this option?

    Everything was fine and now all of a sudden when I get an email from work in Outlook, it does not open in a separate window from Adobe. Now, it opens as an additional firefox tab. I don't want to do.

    Help, please.

    Hello

    All PDF files now open in Firefox? If Yes, then it seems that you have changed your default programs in Windows.

    If you have a PDF file that is saved on your computer at your fingertips:

    1. Right click on properties and PDF
    2. Under the general tab, next to "Open with" is probably Firefox, click on the button 'change '.
    3. Select Adobe Reader, and then press 'OK '.

    Alternatively, if you do not have a PDF file on your computer:

    1. Go to start > Control Panel > default of programs
    2. Click on associate a type of file or Protocol with a program
    3. Scroll down to find the file type ".pdf".
    4. Click on the ' Change program... "button. »
    5. Select Adobe Reader, followed by 'OK '.

    I hope that suits it for you.

  • How to open PDF from a dvd

    My laptop is a HP Pavilion dv6.  How can I access a pdf of a lesson (s) purchased dvd guitar? It is said when I insert dvd my computor will show me how.  I put in the latest version of Adobe Acrobat, which is the program required that he said, but there is no answer.  My forum name is Sentercal thank you.

    Hello Sentercal,

    Are you sure that you have Adobe Acrobat (Reader) is installed?

    Also when you say that if you put the DVD in the drive, it will show you how. The DVD is supposed to play a video when inserted and his does nothing?

    If this is the case, you can go to computer and run the DVD from there, or explore the content to find PDF files to open it?

    If you find PDF files, and still, they do not open with Adobe Reader, then you will need to contact the vendor of the disk to find a solution. It could be the files on the drive are corrupted or the drive is bad.

    You can also play or open other discs without problems, correct?

  • How to print a PDF from the TWINUI application?

    I have a pdf I want to print.

    When I open the PDF file, it opens in the application by default TWINUI.

    How can I print it?

    Arto

    u just need to press ctrl + p ...-_ -.

  • Anyone having problems with Chrome opening PDF from their site DW?

    The PDF on my site open questions. Anyone know what could be the cause?

    They are responsible, but a page may be missing or numbers on the page disappeared. Files still normally work in Safari. First page of this PDF does not load for example http://phonicsfaster.com/pdf s/phonicsfastercomics - small.pdf

    PDF files is not the web files.  They are multimedia files.  And many people do not have the latest multimedia plugins installed on their system.  Some people like me prefer to download & open a PDF directly in Acrobat Pro or another PDF reader.  According to me, it is usually best to offer a direct link to the PDF file and allow people to manipulate but they hear it.

    Nancy O.

  • Opening PDFs from a projector

    Can someone tell me how to open a PDF file in Acrobat by a button in your projector (for the use of CD-ROM)?

    It works.

    You can write the action for the button script:
    on (release) {}
    fscommand ("exec", "run1.bat");
    }

    run1.bat must reside in a subdirectory named fscommand (!)

    run1.bat contains for example (drive H - CD-ROM drive):
    Start H:\Outfit\Knife\Catalog\beretta.pdf

    for example, knives2.bat contains:
    Start H:\Outfit\Knife\Catalog\spiderco.pdf

    and so on.

    You can name the files .bat at discretion.

  • dc Acrobat subscription - android app opens the pdf with external application?

    Hello

    The adobe app for android (Lenovo ideapad10) dc opens pdf documents with an external application since a few days - why is this? Why adobe would need an external application for that?

    What happened to the pro-fonctions? I can't edit the pdf documents more. But I need it for the University.

    What can I do? Help, please!

    Thank you

    Falk

    I have a theory based on the screenshots:

    1. The files do not have the .pdf extensions on their behalf. Can you try renaming one of them to ensure that they end in .pdf?
    2. Some file names have a '. ' in them. If the addition of a .pdf extension does not work, can you please try to remove the '. '?

    I don't have my camera android with me today so I can not test this theory. Thank you for your answer!

    Pat

  • How fix oblivion previously opened tabs when Firefox starts by clicking on a link in an external application?

    Hello, I have the boot option: "show my windows and tabs from last time" activated. Works fine, except when Firefox starts when I click on a link in an external application (typically Thunderbird). Then, the new link is opened in a new tab, Firefox remembers the number of tabs I had open when I finally closed it, but all of the 'old' tabs are empty. Somehow fix this behavior?

    Deactivation of the modules does not help. By clicking on a link in an external application when Firefox is already open works OK. I use Firefox for some time short (probably half a year) and this problem was still there (not that is not due to a new update).

    Thank you.

    If Firefox is closed, and an external link opens Firefox, you must go to history > recently closed tabs and open tabs before closing Firefox. If you don't 'last session' will be gone and only one page than the open external program will be the new "previous session."

    If this is not satisfactory, you will need to install an extension of type "session manager" as well as "the last sitting" remember only.

    Search for AMO "session manager".

  • I can't open a pdf from last week. I have a Samsung s6 edge with t-mobile. I spent an hour and a half with t-mobile tech support and they told me to email you because they don't know what else to do. [Android]

    I can't open a pdf from last week. I have a Samsung s6 edge with t-mobile. I spent an hour and a half with t-mobile tech support and they told me to email you because they don't know what else to do.

    Hi Edwin,.

    May I know what is happening when you try to open a PDF file with Adobe Acrobat app on your device Galaxy.

    Try this:

    Go to settings > Applications > Adobe Acrobat

    Under the terms of the App Info, click on clear Cache

    Then try to open a PDF file

    Still, if this does not work

    Uninstall the application

    Then download and install directly from APK files.

    Adobe - Adobe Acrobat Reader DC Distribution

    I would like to know if it works for you.

    Thank you

    Abhishek

  • How to open a PDF from another Web site?

    I'm trying to use Adobe to fill out a job application. They said that safari could not and I need to get the latest version that I did, but now when I go on the web site it just continues to show me this message. How to open a PDF from another site?

    Right-click on the link to the pdf file, save it on your computer, open it from the inside Reader using file > open.

Maybe you are looking for