Vb.Net - Create Hyperlink to Document on Server

Good Day Experts!

I am interested in creating a hyperlink, to a file that resides on a server, and then emailing it.  Currently I do have the emailing working from my VB.Net 2005 project.  However, I am not sure I turn the path of a file on the server into a hyperlink.

Do you have any reference suggestions I can take a look at?

Thanks,
jimbo99999
Jimbo99999Asked:
Who is Participating?

[Product update] Infrastructure Analysis Tool is now available with Business Accounts.Learn More

x
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Bob LearnedCommented:
When you send the E-Mail, are the users going to have access to the server?  

Are you using an IP address or host name for the server?

Does the server have a shared folder?
Jimbo99999Author Commented:
Hello...thanks for responding.  Currently I am generating the report manually, building the link in outlook and then emailing.  The user then clicks on it and the report opens.  

I am trying trying to strealine/automate this process.  I have the report being generated in my vb.net project.  I have the excel ss saving out to the server.  I have the email being sent to the user.  My missing piece is creating the link to include in the email!

What do you think, can it be done?

Thanks,
Jimbo99999
Bob LearnedCommented:
That sounds like a good case for generating a hyperlink.  The file would need to be publicly available.  How are you generating the E-Mail?

Examples:

http://10.45.56.420/FileServer/Attachment/File001.txt
http://www.contoso.com/public/attachments/File001.txt
Microsoft Azure 2017

Azure has a changed a lot since it was originally introduce by adding new services and features. Do you know everything you need to about Azure? This course will teach you about the Azure App Service, monitoring and application insights, DevOps, and Team Services.

Jimbo99999Author Commented:
Good Morning

We are using the ARCLABEMAILTOOLBOXLib.Mailer.  

I will take a look at your links.  Thank you for taking the time to respond and help out.

jimbo99999
Jimbo99999Author Commented:
I cannot get the links to work.  Can you help out?

Thanks,
jimbo99999
Bob LearnedCommented:
Can you show me what you came up with?

What is the issue with the links?
Jimbo99999Author Commented:
Good Day

The first link says "Server not found" and the second one sends me to a Microsoft website.

Thanks for helping,
jimbo99999
Bob LearnedCommented:
Those were only examples of what you could generated.  You would need to use the IP address or host name for the server that you are working with.
Jimbo99999Author Commented:
Thanks...I understand now that you were showing examples.

But, what I don't know how to do in VB.Net is make a string a clickable link to put into my email.
Bob LearnedCommented:
You would need to create an anchor tag like this example:

Dim link As String = "<a href=""http://localhost:" & partUrl & "/test.aspx?autoNum=" & autoNum & """>Click here</a>" 

Open in new window

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
Jimbo99999Author Commented:
Thanks for replying I will try this out tomorrow.

Thanks,
jimbo99999
Jimbo99999Author Commented:
Thanks for the help Bob Learned...it is working now!

Have a good day,
jimbo99999
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Visual Basic.NET

From novice to tech pro — start learning today.