473,503 Members | 1,726 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Formatting Hyperlink to UNC path (Printer)

Hi!
I'm making a webpage where it will list all the printers in their area, with
the UNC path to the printer. It would be like:
\\someserver\aprinter

The only problem is, if I type that path into IE, it works, but when my
application provides a hyperlink to it, I get a "Page cannot be displayed"
Is there any reason you can think of why this is happening?

I'm populating the printers from a dataset into a DataList control.
I'm binding the hyperlink item of the template to one of the fields.
Nov 2 '06 #1
2 3285
The only way I figured out how to make a hyperlink to a printer is to create
a shortcut, and then link to that shortcut. That worked out okay.

"Casey" wrote:
Hi!
I'm making a webpage where it will list all the printers in their area, with
the UNC path to the printer. It would be like:
\\someserver\aprinter

The only problem is, if I type that path into IE, it works, but when my
application provides a hyperlink to it, I get a "Page cannot be displayed"
Is there any reason you can think of why this is happening?

I'm populating the printers from a dataset into a DataList control.
I'm binding the hyperlink item of the template to one of the fields.
Nov 2 '06 #2
Also, I discovered, that when you deploy an application that opens/links to a
printer shortcut on the web, IIS won't serve it. Unless, you add the MIME
type:
application/octet-stream

"Casey" wrote:
The only way I figured out how to make a hyperlink to a printer is to create
a shortcut, and then link to that shortcut. That worked out okay.

"Casey" wrote:
Hi!
I'm making a webpage where it will list all the printers in their area, with
the UNC path to the printer. It would be like:
\\someserver\aprinter

The only problem is, if I type that path into IE, it works, but when my
application provides a hyperlink to it, I get a "Page cannot be displayed"
Is there any reason you can think of why this is happening?

I'm populating the printers from a dataset into a DataList control.
I'm binding the hyperlink item of the template to one of the fields.
Nov 3 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
2320
by: laura | last post by:
I am writing an intranet and want to be able to hyperlink to all files within a specific folder AND it's subfolders. Whilst I can hyperlink to the files in the specified folder AND I can also...
0
3087
by: MJBAccess | last post by:
I'm trying to use a command button to print a Word document that is in a Hyperlink field. I keep getting Run-Time Error 5273 and it says the document name or path is not valid. The Hyperlink...
2
1601
by: Alan | last post by:
I have a database I created on a network share when I print a report from my computer the printed copy contains the colors specified in conditional formatting but if I go to another computer on the...
4
4372
by: Marco Krechting | last post by:
Hi All, Sorry but I have to create new message since it cannot find the old message to send a reply. Coming back to this hyperlink thing I will try to explain the real problem cause I think we...
3
11091
by: Ray | last post by:
I recently upgraded from Access 97 to Access 2003 and just enter some new data into table via an input form. The form has one hyperlink field to contain a file path. In Access 2003, it appears...
6
2634
by: Irfan Mumtaz | last post by:
My program is aught to print automatically an excel sheet after all the data is collected into it. At the moment i have hard coded the printer path ( which obviously is not an appropriate way) and...
20
2972
by: tshad | last post by:
I had posted this problem earlier and just noticed that the Hyperlink is the problem. Apparently, it doesn't figure out the path correctly. It uses the path of the file it is in, even if it is...
13
42856
ADezii
by: ADezii | last post by:
Recently, there have been several questions and much confusion concerning the Topic of Hyperlinks. Specifically, Users wanted to know how to retrieve a File Name from a FileDialog Box, copy the Name...
10
2106
by: sara | last post by:
Hi - I have a report that is 14 columnar sub-reports (Line up: Position- holders in each of our 14 locations - Manager, Assistant Manager, Receiving, Office, etc). I output directly to PDF...
0
7281
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
7334
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
7462
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5014
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4675
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3168
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3156
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
1514
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
1
737
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.