How to open a pdf file by clicking a labelin VB6

I want to open a pdf file by single click in vb , please tell me what

Page 1 of 1

2 Replies - 7971 Views - Last Post: 21 August 2009 - 06:27 AM Rate Topic: -----

#1 sanjeeb_usic  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 1
  • Joined: 21-August 09

How to open a pdf file by clicking a labelin VB6

Post icon  Posted 21 August 2009 - 02:11 AM

I want to open a pdf file by single click in vb , please tell me what is the procedure
Is This A Good Question/Topic? 0
  • +

Replies To: How to open a pdf file by clicking a labelin VB6

#2 firebolt  Icon User is offline

  • D.I.C Lover
  • member icon

Reputation: 92
  • View blog
  • Posts: 5,561
  • Joined: 20-February 09

Re: How to open a pdf file by clicking a labelin VB6

Posted 21 August 2009 - 02:20 AM

Well, a single click is simple. Just the mouse click event or when a label etc is clicked.

You'll now need to know how to open a .pdf file from vb6.
Dim openfile As String, ARL As String, FL As String
Private Sub [Some Component]_Click

ARL = "[Adobe Reader Location] " ', vbNormalFocus

FL = "[File Location]"

openfile = ARL & FL

Shell openfile, vbNormalFocus

End Sub


Was This Post Helpful? 1
  • +
  • -

#3 MuSSi  Icon User is offline

  • D.I.C Head
  • member icon

Reputation: 1
  • View blog
  • Posts: 84
  • Joined: 05-June 09

Re: How to open a pdf file by clicking a labelin VB6

Posted 21 August 2009 - 06:27 AM

Private Sub Label1_Click()
Shell (".PDF Path/Location here")
End Sub
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1