Planet PDF Forum Archive

Planet PDF ForumThe page you are viewing is part of our 160,000 page PDF discussion forum archive spanning 1999-2008. Would you believe we have a 2nd forum archive which covers 2008 - 2011? But... if you really want to bust-a-move head to the LIVE Planet PDF Forum. It features more than 10 conferences, covering everything from beginner discussions to in-depth developer and pre-press discussions.


How to search this archive. The quickest way is to use the filters on our Advanced Search page so that only archive pages are included in the results.


Previous | Next | (P-PDF) Acrobat 6.0


Topic: Viewing in 6.0
Conf: (P-PDF) Acrobat 6.0, Msg: 110436
From: JasonBJones
Date: 4/27/2004 11:39 PM

I was very displeased with the options of viewing a PDF from within VB.net so with the help of the examples I wrote my own viewer.

This worked great in 5.0. However we did recently upgrade to 6.0 and now I have a small issue.

I am using OpenInWindowEx. The document still views but I am unable to get the scroll bars to show up automatically unless I use the AV_EXTERNAL_VIEW parameter and use the right click menu to show the window.

In 5.0 using AV_DOC_VIEW worked great and even now on 6.0 the examples from VB 6.0 work properly. It's just not working properly in .net. Any help would be welcome.

Public Sub LoadMe(ByVal v_Filename As String)

Dim ok As Integer
Dim WhereAMI As String

Try

AcroExchAVDoc = CreateObject("AcroExch.AVDoc")

WhereAMI = "loaded AcroExchAVDoc "

ok = AcroExchAVDoc.OpenInWindowEx(v_Filename, Me.Handle.ToInt32, AV_DOC_VIEW, True, 0, PDFullScreen, AVZoomFitWidth, 0, 0, 0)

'ok = AcroExchAVDoc.OpenInWindowEx(PDFOUTDirectory & v_Filename, Me.Handle.ToInt32, AV_DOC_VIEW, True, 0, PDFullScreen, AVZoomFitWidth, 0, 0, 0)

WhereAMI = "put in window AcroExchAVDoc"

If Not ok Then
AcroExchAVDoc.Close(0)
MsgBox("Can't open file: " + v_Filename)
Exit Sub
End If

Me.ShowDialog()

AcroExchAVDoc.Close(0)

Dispose(True)

Catch ex As Exception

MsgBox(WhereAMI & " " & ex.Message)

End Try

End Sub

Public Const AV_EXTERNAL_VIEW = 1 ' Open the document with tool bar visible
Public Const AV_DOC_VIEW = 2 ' Draw the page pane and scrollbars
Public Const AV_PAGE_VIEW = 4 ' Draw only the page pane


PDF In-Depth Free Product Trials Ubiquitous PDF

Debenu Aerialist 11

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link...

Download free demo

LockLizard Safeguard PDF Security

Made specifically for publishers of high value information published in PDF format, it protects your PDF...

Download free demo

OfficeSuite Updated To v7.2: Additional PDF Export Options

OfficeSuite And OfficeSuite Pro Updated To v7.2: Additional PDF Export Options, HP ePrint Support, And More

June 20, 2013
Search Planet PDF
more searching options...
PDF Resources
Platinum Sponsor

Debenu - Unrivaled PDF Productivity | PDF Library, Acrobat Plug-Ins

Silver Sponsors

LockLizard DRM PDF Security Quick PDF Library: The Unrivaled PDF Developer Toolkit

Featured Product

Debenu PDF Aerialist 11

The ultimate plug-in for Adobe Acrobat. Advanced splitting, merging, stamping, bookmarking, and link control. Take Acrobat to the next level.

Featured Event

Adobe Digital Marketing Summit

March 20-23, 2012 -- Salt Palace Convention Center, Salt Lake City, Utah

The Digital Marketing Summit is the premier event for digital marketers and advertisers to learn about and share key strategies for driving marketing innovation. Attend Summit to learn how you can create, measure, and optimize digital experiences to revolutionize how the world engages with ideas and information.