Solved

Vb.Net - Create Hyperlink to Document on Server

Posted on 2014-11-25
12
53 Views
Last Modified: 2014-12-08
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
0
Comment
Question by:Jimbo99999
  • 7
  • 5
12 Comments
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40469796
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?
0
 

Author Comment

by:Jimbo99999
ID: 40469924
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
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40471178
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
0
 

Author Comment

by:Jimbo99999
ID: 40473587
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
0
 

Author Comment

by:Jimbo99999
ID: 40473623
I cannot get the links to work.  Can you help out?

Thanks,
jimbo99999
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40476201
Can you show me what you came up with?

What is the issue with the links?
0
Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

 

Author Comment

by:Jimbo99999
ID: 40476214
Good Day

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

Thanks for helping,
jimbo99999
0
 
LVL 96

Expert Comment

by:Bob Learned
ID: 40476357
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.
0
 

Author Comment

by:Jimbo99999
ID: 40477054
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.
0
 
LVL 96

Accepted Solution

by:
Bob Learned earned 500 total points
ID: 40477065
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

0
 

Author Comment

by:Jimbo99999
ID: 40481338
Thanks for replying I will try this out tomorrow.

Thanks,
jimbo99999
0
 

Author Closing Comment

by:Jimbo99999
ID: 40487475
Thanks for the help Bob Learned...it is working now!

Have a good day,
jimbo99999
0

Featured Post

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

A while ago, I was working on a Windows Forms application and I needed a special label control with reflection (glass) effect to show some titles in a stylish way. I've always enjoyed working with graphics, but it's never too clever to re-invent …
Introduction When many people think of the WebBrowser (http://msdn.microsoft.com/en-us/library/2te2y1x6%28v=VS.85%29.aspx) control, they immediately think of a control which allows the viewing and navigation of web pages. While this is true, it's a…
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…
As a trusted technology advisor to your customers you are likely getting the daily question of, ‘should I put this in the cloud?’ As customer demands for cloud services increases, companies will see a shift from traditional buying patterns to new…

920 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now