473,385 Members | 1,707 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,385 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 3522
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...

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.