Link Automatically

VB.NET SEARCH AND LINK AUTOMATICALLY

Page 1 of 1

3 Replies - 837 Views - Last Post: 16 June 2010 - 10:22 PM Rate Topic: -----

#1 senior_oracle2010   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-June 10

Link Automatically

Posted 16 June 2010 - 06:29 AM

How can I link to a file automatically based on some naming convention , example

the application should link to a pdf file when it finds like the below combination :

" ...... some text .... ammended by Rule 80/85 published in 05/12/2000"

so the application should link to the file named R_80/85_05/12/2000 (R for Rule)

if the file is available it should link if not it will stay normal

any suggestion please ?

Is This A Good Question/Topic? 0
  • +

Replies To: Link Automatically

#2 modi123_1   User is online

  • Suitor #2
  • member icon



Reputation: 14924
  • View blog
  • Posts: 59,575
  • Joined: 12-June 08

Re: Link Automatically

Posted 16 June 2010 - 07:37 AM

You are asking the program to guess and infer what you want from unclear information. That will be tricky.

Clearly you can do things like keyword matching in a database..

"Rule 80/85 published in 05/12/2000" in one column
"R_80/85_05/12/2000.pdf" in another

... and then bang the first column against all entered text to see what sticks... Then again you would have to do this for all instances.

Outside of that if you would have to build some interesting regex strings to get pertinent information out.

How much programming experience do you have?
Was This Post Helpful? 0
  • +
  • -

#3 Jack Eagles1   User is offline

  • Pugnacious Penguin (inspired by no2pencil)
  • member icon

Reputation: 187
  • View blog
  • Posts: 1,152
  • Joined: 10-December 08

Re: Link Automatically

Posted 16 June 2010 - 09:33 AM

What medium are you using to display information to the user? A webbrowser, a label or what?

What you would need to do is either use regex, or string methods to find out the exact path which you want, and then check if the path exists (If My.Compuer.FileSystem.FileExists("Whatever"). Then you need to create a link to that file. You could use a linklabel at the bottom of the form. If you're using a webbrowser to display the information you could find that a little tricky, but I have an idea for if you are...
Was This Post Helpful? 1
  • +
  • -

#4 senior_oracle2010   User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 2
  • Joined: 16-June 10

Re: Link Automatically

Posted 16 June 2010 - 10:22 PM

Dear Jack Eagle

I m highly convinced after reading your reply that you could help me by hinting me with some code .

I really need help with that , the application can be either browser based or not .

your quick assistance is very appreciated .
Was This Post Helpful? 0
  • +
  • -

Page 1 of 1