473,657 Members | 2,475 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\ap rinter

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 3289
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\ap rinter

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\ap rinter

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
2328
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 iterate through the subfolders and list them, for some reason I cannot hyperlink to the sub folders. I am writing this software at home using a computer that has IIS and Windows 98 and am accessing this as my server from another computer on my network....
0
3092
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 opens fine if I open it manually but not with this code. Any ideas? I'm Access 2002 with WinXP and all the latest updates. I do have Word Objects 10.0 selected under Tools Reference. Thanks, Mike Dim oApp As Object
2
1606
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 network the report prints greyscale. If I change conditional formatting to bold and italic it will work fine but not colors. This is a mix of win2k and XP machines and a mix of access 2000 and 2002
4
4385
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 are going in circles. I have a continous form with a hyperlink field on it. Normally when you click on a hyperlink field Access will follow the Hyperlinkbase set in the database. This is for example in my case "I:\". However I have two different
3
11097
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 not to accept file path and adds some additional characters, i.e.,%20 between space of the file path. Can someone advise why it happens and if I can use the old method to store the file path. Thanks, Ray
6
2639
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 i need to change the path whenever there are changes in the printer or network settings. What i would like is that when a printer is not available, it pops up a printer dialog and gives me choice to choose among other printers (which is not a...
20
2990
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 a control. I have 2 files "displayCompanyJobs.aspx" and "displayCompanyOverview.aspx" which are in both the folder "/jobseeker/" and "/employer/". I have a user control "displayCompanyJobs.ascx" that is in my /applicant/
13
42936
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 to a Bound Text Box on a Form, and save the Hyperlink to the underlying Table. The code demos below will do just that: retrieve the Absolute Path of of File from a FileDialog Box, use the Base Name (no extension) as the Display Text for the...
10
2132
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 (using ConvertReportToPDF from this site - Stephan Lebans) The formatting - Outlines on some fields - do not appear on subreports
0
8323
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
8838
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
1
8513
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8613
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 protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
7351
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6176
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5638
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 then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
4173
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
2
1969
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.