Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. C#
  4. Scroll into a Adobe Reader using buttons c#

Scroll into a Adobe Reader using buttons c#

Scheduled Pinned Locked Moved C#
csharpcomadobehelp
4 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • A Offline
    A Offline
    alfie max15
    wrote on last edited by
    #1

    I Have Created a Simple form in which i have added Adobe Reader from toolbox using steps 1. right click in toolbox - Choose Items 2. choose COM Components tab and there "Adobe PDF Reader" 3. Now Drag&Drop the Adobe PDF Reader Control into an UserControl I have successfully added this, opened up a pdf file also. Now it automatically provides with vertical scrollbars for scrolling through the pdf document. What i want to achieve is instead of using the given scrollbars or mouse to scroll, i want to use a button to scroll scroll the pdf, So there will be two buttons, One for Scroll Up And the other for scroll down. I have gone through many forums, pages, etc. Havnt found anythn that i could use. I have Tried Simulating key presses with

    SendKeys.Send("{DOWN}");

    But as i press the button, the focus is lost on the adobe reader so it doesnt work Pls help me... I have spent almost half a day searchin for a solution

    B 1 Reply Last reply
    0
    • A alfie max15

      I Have Created a Simple form in which i have added Adobe Reader from toolbox using steps 1. right click in toolbox - Choose Items 2. choose COM Components tab and there "Adobe PDF Reader" 3. Now Drag&Drop the Adobe PDF Reader Control into an UserControl I have successfully added this, opened up a pdf file also. Now it automatically provides with vertical scrollbars for scrolling through the pdf document. What i want to achieve is instead of using the given scrollbars or mouse to scroll, i want to use a button to scroll scroll the pdf, So there will be two buttons, One for Scroll Up And the other for scroll down. I have gone through many forums, pages, etc. Havnt found anythn that i could use. I have Tried Simulating key presses with

      SendKeys.Send("{DOWN}");

      But as i press the button, the focus is lost on the adobe reader so it doesnt work Pls help me... I have spent almost half a day searchin for a solution

      B Offline
      B Offline
      BillWoodruff
      wrote on last edited by
      #2

      You might try using this with SendKeys: "+^H" ... see what happens. [^].

      “I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.' As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'” Vincent Van Gogh

      A 1 Reply Last reply
      0
      • B BillWoodruff

        You might try using this with SendKeys: "+^H" ... see what happens. [^].

        “I'm an artist: it's self evident that word implies looking for something all the time without ever finding it in full. It is the opposite of saying : 'I know all about it. I've already found it.' As far as I'm concerned, the word means: 'I am looking. I am hunting for it. I am deeply involved.'” Vincent Van Gogh

        A Offline
        A Offline
        alfie max15
        wrote on last edited by
        #3

        I tried it, but it did nothing, What was it supposed to do???

        D 1 Reply Last reply
        0
        • A alfie max15

          I tried it, but it did nothing, What was it supposed to do???

          D Offline
          D Offline
          Dan Sporici
          wrote on last edited by
          #4

          Might worth trying: Try sending a WM_VSCROLL message, using SendMessage() (via PInvoke) to the PDF Reader's Handle, when the button is clicked. Should look like this:

          SendMessage(adobePDFReaderHandle, WM_VSCROLL, (IntPtr)1, IntPtr.Zero); // this should scroll down

          Hopefully the handle of the control is provided...if not, you'll have to search it... Otherwise, try restoring the focus to the Adobe PDF Reader Control before sending the key combination.

          1 Reply Last reply
          0
          Reply
          • Reply as topic
          Log in to reply
          • Oldest to Newest
          • Newest to Oldest
          • Most Votes


          • Login

          • Don't have an account? Register

          • Login or register to search.
          • First post
            Last post
          0
          • Categories
          • Recent
          • Tags
          • Popular
          • World
          • Users
          • Groups