473,396 Members | 1,812 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Printing to a local printer

Hi there,

Our client has a requirement to print labels from the web site to a local
printer. i.e. user logs onto web site and click a print button and the
address is printed to a label printer connected to the user's computer.

After much searching I think I've come to the conclusion that these are the
only possible ways of doing this:

1. Javascript Window.print()
2. Using mail merge with MS Word which opens Word and printing from there.
3. Using Crystal Reports to generate a .PDF and printing from there.
4. Using an ActiveX control (?)

Since the user is using a dedicated label printer, #1 won't work. Using
Crystal Reports may not be possible due to licensing issues (looking into it
now) plus it seems like overkill for a simple little label. I don't know
anything about using ActiveX controls so it looks like #2 is the only
feasable option since we will be using it for printing generated documents.

I am currently looking at sharing the label printer but my first attempts
were unsuccessful.

Can anyone confirm that these are the only options to printing to a local
printer from a browser?
Thanks,

Carlo.
Jan 6 '06 #1
3 3523
Dan
What about just pressing print in internet explorer once the label has been
shown on the webpage at the client end?

--
Dan
"carlor" <ca****@discussions.microsoft.com> wrote in message
news:87**********************************@microsof t.com...
Hi there,

Our client has a requirement to print labels from the web site to a local
printer. i.e. user logs onto web site and click a print button and the
address is printed to a label printer connected to the user's computer.

After much searching I think I've come to the conclusion that these are
the
only possible ways of doing this:

1. Javascript Window.print()
2. Using mail merge with MS Word which opens Word and printing from there.
3. Using Crystal Reports to generate a .PDF and printing from there.
4. Using an ActiveX control (?)

Since the user is using a dedicated label printer, #1 won't work. Using
Crystal Reports may not be possible due to licensing issues (looking into
it
now) plus it seems like overkill for a simple little label. I don't know
anything about using ActiveX controls so it looks like #2 is the only
feasable option since we will be using it for printing generated
documents.

I am currently looking at sharing the label printer but my first attempts
were unsuccessful.

Can anyone confirm that these are the only options to printing to a local
printer from a browser?
Thanks,

Carlo.

Jan 6 '06 #2
Hi Dan,

I tried that. It didn't work. So, I thought I'd try it again to explain what
was going wrong when, lo and behold, it worked! I was having all kinds of
problems yesterday with the borders, but it "magically" worked today.
(Perhaps my computer gremlins decided to take a long weekend?) Unfortunately,
I still have to change the default page borders each time I start up the
browser again

Unfortunately it's still more steps than we'd like for the client. We're
migrating them from a Powerbuilder app (where all they had to do was click a
button to print the label) to a web app. Ideally we'd like to keep it as
simple as possible for the user.
Thanks,

Carlo.

"Dan" wrote:
What about just pressing print in internet explorer once the label has been
shown on the webpage at the client end?

--
Dan


Jan 6 '06 #3
Hi Carlo,

No i agree it should be a simple print. I have made the same feature in some
work i do for printing invoices with attached labels. I just made the
invoice template match the paper and they then press print once they preview
it on the screen.

You shouldn't have to change the page borders each time though. Set the
margins in the browser to ensure it lines up, i believe can be done
programtically to always default to your needs through the registry
settings.

There are lots of other methods too but you shouldnt need to keep setting
the borders.

Take care

"carlor" <ca****@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
Hi Dan,

I tried that. It didn't work. So, I thought I'd try it again to explain
what
was going wrong when, lo and behold, it worked! I was having all kinds of
problems yesterday with the borders, but it "magically" worked today.
(Perhaps my computer gremlins decided to take a long weekend?)
Unfortunately,
I still have to change the default page borders each time I start up the
browser again

Unfortunately it's still more steps than we'd like for the client. We're
migrating them from a Powerbuilder app (where all they had to do was click
a
button to print the label) to a web app. Ideally we'd like to keep it as
simple as possible for the user.
Thanks,

Carlo.

"Dan" wrote:
What about just pressing print in internet explorer once the label has
been
shown on the webpage at the client end?

--
Dan

Jan 6 '06 #4

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

Similar topics

1
by: Maileen | last post by:
Hi, I have 2 questions : 1. - I want to print from my ASP page directly to my network printer. For this i use the following code, but everytime, my document to print is sent to local and...
5
by: Mark Preston | last post by:
Admission first - I don't actually have a problem here but have noticed that a lot of people have been asking similar questions and getting very varied answers. What I've done is to sort of...
11
by: IC_Clearly | last post by:
I'm running Server 2003 and wonder how well WTS works when printing an Access report to a client. Any suggestions would be appreciated. Thanks. IC
0
by: Karthik | last post by:
Well I am coding an application using C# for my company which requires multiple printing of Crystal Report Docs & Word Docs, at a specific Printer of the installed Printers in the network, at a...
2
by: Sharone Shani | last post by:
Hi John, thanks for your replay. What I'm trying to do is as follows: We are hosting a server, which is used by our clients. We have a printing object written in Visual Basic.NET. I want to...
4
by: IntraRELY | last post by:
Hello All, I am developing a Web Application in VB.NET. We are printing checks from a IE 6.0. Here are our requirments: 1. Checks will be printed on pre-printed stock, so we must format the...
5
by: Tom | last post by:
I am converting an old application that was printing directly to a specialized printer device (i.e. a special label printer). It was doing this by opening a file with the file path of 'LPT1:' and...
0
by: Daniel Fisher | last post by:
Hi there, Our client has a requirement to print labels from the web site to a local printer. i.e. user logs onto web site and click a print button and the address is printed to a label printer...
18
by: Brett | last post by:
I have an ASP.NET page that displays work orders in a GridView. In that GridView is a checkbox column. When the user clicks a "Print" button, I create a report, using the .NET Framework printing...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
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...
0
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
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
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...

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.