467,077 Members | 1,135 Online
Bytes | Developer Community
Ask Question

Home New Posts Topics Members FAQ

Post your question to a community of 467,077 developers. It's quick & easy.

Borderless formatted Printing from ASP.NET

Hello,
I am trying to create a small application that creates labels and I have
purchased a thermal transfer label printer. Now I need to be able to print
the formatted label to the printer without the browser header/footer and
without margins or borders....
Any starting ideas or links to resources that may help me...
Thanks
Clint
Nov 19 '05 #1
  • viewed: 1164
Share:
3 Replies
Generate an image, and print that...

"Clint MacDonald" <cl***@interglobal.ca> wrote in message
news:Xa********************@rogers.com...
Hello,
I am trying to create a small application that creates labels and I have
purchased a thermal transfer label printer. Now I need to be able to
print the formatted label to the printer without the browser header/footer
and without margins or borders....
Any starting ideas or links to resources that may help me...
Thanks
Clint

Nov 19 '05 #2
Yes, but how do you print the image without the IE borders/page 1 or 1 and
the URL footer?
I guess I am asking how to print from ASP.NET with controlled output.
From my research it is important to note that the printer is on the server
or LAN shared and mapped to the server
I looked at CSS print, but only controlled content, not the print itself.

<japhar81> wrote in message news:gv********************@giganews.com...
Generate an image, and print that...

"Clint MacDonald" <cl***@interglobal.ca> wrote in message
news:Xa********************@rogers.com...
Hello,
I am trying to create a small application that creates labels and I have
purchased a thermal transfer label printer. Now I need to be able to
print the formatted label to the printer without the browser
header/footer and without margins or borders....
Any starting ideas or links to resources that may help me...
Thanks
Clint


Nov 19 '05 #3
If you are planning to print from the browser, you will need to control
print borders, headers and footers directly from the browser. For
Internet Explorer, Netscape Navigator and (I think) Mozilla, go to
File, Page Setup on the main menu and you will see options specifically
for these and other print settings.

I have found HTML opened from the browser to not be very good for
precise printing. Instead, it may pay to generate the labels in
another application and open it from the browser. For example, you
could use Office Web Components (OWC) to generate an Excel spreadsheet
which is formatted precisely for your labels. The spreadsheet can then
be opened in Excel from a link you provide in the browser.

Another approach that I have taken is to generate a comma-delimited
text file from the web application and store it on the server. The
user is then directed to open a MS Word document which is set up for a
mail merge. When the user opens the document, he/she is prompted to
enter a username. From that point, code in the document sets the mail
merge source to the appropriate csv file previously created on the
server. The advantage of this method is that the users (who were all
very experienced in doing MS Word mail merges) can individually change
the formatting to suit their needs. The disadvantage is that the
method is a bit clumsy because it required a few extra steps. Also, MS
Office security must be adjusted on each workstation to allow macros to
run. It does, however, produce perfect mailing label prints.

Bill E.

Nov 19 '05 #4

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

reply views Thread by Stuart Woodard | last post: by
5 posts views Thread by trint | last post: by
1 post views Thread by SeanR | last post: by
3 posts views Thread by Rick@gmail.com | last post: by
8 posts views Thread by James Arnold | last post: by
6 posts views Thread by Jojo | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.