Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Document Open Options

Status
Not open for further replies.

Shabeel

Programmer
Joined
Aug 3, 2004
Messages
1
Location
US
Hi all,

I have a VB application that generates a PDF reports. It works great except I would like to specify how the PDF file is display when it's opened. I want Bookmarks displayed without users clicking on the bookmark tab or Pane. I'm rather green on this and would like your help.

Currently I have this code:

For i = 1 To CurrentBookmark
If BookmarkList(i, 0) <> "" Then
Print #2, "[/Count " & BookmarkList(i, 1) & " " _
& "/Page " & BookmarkList(i, 2) & " " _
& "/View [/Fit]" & " " _
& "/Title (" & Replace(Replace(BookmarkList
(i,0), "(", "{"), ")", "}") & ") " _
& "/OUT pdfmark"

Else
Exit For
End If
Next i

Reading the Pdfmark Reference Manual, under Document Open Option, I though modifying the print statement as follows may work but it doesn't.

Print #2, "[/PageMode /UseOutLines" & " " _
& "[/Count " & BookmarkList(i, 1) & " " _
& "/Page " & BookmarkList(i, 2) & " " _
& "/View [/Fit]" & " " _
& "/Title (" & Replace(Replace(BookmarkList
(i,0), "(", "{"), ")", "}") & ") " _
& "/DOCVIEW pdfmark"


The manual seem to be saying that specifying [/PageMode /UseOutLines
and DOCVIEW pdfmark
Will do the trick, but it doesn't. What am I missing??

I appreciate for any assistance.


 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top