473,405 Members | 2,262 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,405 software developers and data experts.

Print envelope

We have a classic ASP intranet web site that has been around for a while.
Our customer wants to be able to print an envelope from the contact name and
address table. We have other reports that we display and print from the
HTML generated by our ASP code, but have not been able to find any way to
format a page and print to an envelope. Can anyone help? Thanks.

David
Jul 22 '05 #1
10 2841
David C wrote:
We have a classic ASP intranet web site that has been around for a while.
Our customer wants to be able to print an envelope from the contact name and
address table. We have other reports that we display and print from the
HTML generated by our ASP code, but have not been able to find any way to
format a page and print to an envelope. Can anyone help? Thanks.

David


Print it where? on the server or client? Unless you are just saying you
want to layout the HTML so that the user can print the site/page? If so
you will really want to get away from that. Look at using a third party
addin/component like Crystal to format printings and such.

--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Jul 22 '05 #2

Yes, at the client. This client is very restricted and all people have
Microsoft Word and all are using IE6. Does that help?

David
*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #3
David wrote:
Yes, at the client. This client is very restricted and all people have
Microsoft Word and all are using IE6. Does that help?

David
*** Sent via Developersdex http://www.developersdex.com ***


Not really...I mean you have almost zero ability to do things on the
client, its a fundamental for security. Without a third party
control/component on the client you are limited to just formatting the
HTML result... you can do some with StyleSheets(CSS) and such, to show
it differently but in the end there is only so much you can tweak.
--
Curt Christianson
site: http://www.darkfalz.com
blog: http://blog.darkfalz.com
Jul 22 '05 #4
Gazing into my crystal ball I observed "David C"
<dl*****@lifetimeinc.com> writing in
news:Oa*************@tk2msftngp13.phx.gbl:
We have a classic ASP intranet web site that has been around for a
while. Our customer wants to be able to print an envelope from the
contact name and address table. We have other reports that we display
and print from the HTML generated by our ASP code, but have not been
able to find any way to format a page and print to an envelope. Can
anyone help? Thanks.

David


You could try a little CSS:

<style type="text/css">
@media screen {
body {font-size:100%;}
}
@media print
{
@page {width:9.5in; height:4.125in}
body {width:8.5in; height:3.125in; font-size:10pt}
div#address {margin-left:5in}
..noprint {display:none}
}
</style>
</head>
<body>
<p class="noprint">Hit the print button on your browser to print this
record</p>
<div id="address">
<%=addressinfo%>
</div>
</body>

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #5
I have never used the @ sign in CSS. What does it do?

David

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #6
Also, it needs to be landscape print.

David

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #7
Gazing into my crystal ball I observed David <da***@lifetime.com> writing
in news:eV**************@TK2MSFTNGP12.phx.gbl:
I have never used the @ sign in CSS. What does it do?

David

*** Sent via Developersdex http://www.developersdex.com ***


@media print
{
/* tells the UA this is for printing */
}
@page
{
/* tells the printer what kind of paper to use */
}
@media aural
{
/* used for screen readers and such, although most of them use IE's
rendering engine and ignore it :.( */
}

http://www.w3.org/TR/REC-CSS2/media.html#q1
--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #8
Gazing into my crystal ball I observed David <da***@lifetime.com> writing
in news:#2*************@TK2MSFTNGP15.phx.gbl:
Also, it needs to be landscape print.

David


http://www.w3.org/TR/REC-CSS2/page.html#page-size-prop

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #9
Below is my test page and it does not print in landscape.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<title></title>

<style TYPE="text/css">
<!--
.startpos {
position: absolute;
width: 350px;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 18px;
top: 120px;
left: 300px;}

.verticaltext {writing-mode: tb-rl; filter: fliph flipv;}

@media screen {
body {font-size:100%;}
}
@media print
{
@page rotated {size: landscape; width:9.5in; height:4.125in}
body {width:8.5in; height:3.125in; font-size:10pt}
div#address {margin-left:4in; margin-top:1.75in; font-size: 16px}
..noprint {display:none}
}
-->
</style>

</head>
<body>
<p class="noprint">Hit the print button on your browser to print this
record</p>
<div id="address">
David Chase<br>
LifeTime Computing, Inc.<br>
5960 W. Brown Deer Rd.<br>
Brown Deer, WI&nbsp; 53223-2310
</div>

</body>
</html>

David

*** Sent via Developersdex http://www.developersdex.com ***
Jul 22 '05 #10
Gazing into my crystal ball I observed David <da***@lifetime.com> writing
in news:OG*************@TK2MSFTNGP09.phx.gbl:
Below is my test page and it does not print in landscape.

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html>
<head> <meta http-equiv="Content-Type" content="text/html;
charset=utf-8"> <title></title>

<style TYPE="text/css"> <!--
.startpos {
position: absolute;
width: 350px;
font-family: Arial, Verdana, Helvetica, sans-serif;
font-size: 18px;
top: 120px;
left: 300px;}

verticaltext {writing-mode: tb-rl; filter: fliph flipv;}

@media screen {
body {font-size:100%;}
}
@media print
{
@page rotated {size: landscape; width:9.5in; height:4.125in}
body {width:8.5in; height:3.125in; font-size:10pt}
div#address {margin-left:4in; margin-top:1.75in; font-size: 16px}
.noprint {display:none}
}
-->
</style>

</head>
<body>
<p class="noprint">Hit the print button on your browser to print this
record</p> <div id="address">
David Chase<br>
LifeTime Computing, Inc.<br>
5960 W. Brown Deer Rd.<br>
Brown Deer, WI&nbsp; 53223-2310
</div>

</body>
</html>

David


This is not a server side issue - this is a client side CSS issue, better
discussed at comp.infosystems.www.authoring.stylesheets. Follow-ups set.

--
Adrienne Boswell
http://www.cavalcade-of-coding.info
Please respond to the group so others can share
Jul 22 '05 #11

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

Similar topics

0
by: Stephen Chell | last post by:
I'm using SAAJ 1.2 (from jwsdp-1.3) and JDK 1.4.2_03. I've written a client application that uses the SAAJ api to send a SOAP message to a servlet. The servlet successfully receives the message...
0
by: Markus Stehle | last post by:
Hi all! I need to create an soap envelope that will be sent to an external service using HTTP POST. I created the required classes which are serialized using XmlSerializer. The envelope should...
5
by: Fred Nelson | last post by:
Hi: I'm trying to write a program that will print envelopes using a HP Laserjet 4 that has three trays. In the future this program will work with other printers so I don't want to "hard code"...
1
by: Ben Crinion | last post by:
I dont think my generated classes are creating a correctly formatted soap envelope I have entered the WSDL into the WebServices Studio app (app is from here...
4
by: dgk | last post by:
Anybody have any code for selecting an appropriate printer and printing an envelope? Greatly appreciated.
0
by: Patrick Brunmayr | last post by:
Hello I have a big Problem with validating a Soap Envelope. I have downloaded the xsd for a soap envelope from http://schemas.xmlsoap.org/soap/envelope/ The validation succeeds as lonng as i...
0
by: broersen | last post by:
Hello, Does someone know how to create manually the header for an SOAP message, without having an WSDL? I also use an X509 certificate for connecting to the webservice. Can anyone help me to get...
2
by: Zvi | last post by:
Hi All, Can someone tell me why id the following not working? I have a soap response envelope, for test purpose it's just a string and I create ElementTree from it. Then I try to find Response...
0
by: snowyan | last post by:
We are using an application to print a letter and its envelope to the printer. The application was performing properly till we upgraded our printers to Canon 3225/1555. The envelopes gets processed...
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
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...
0
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...
0
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,...
0
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...

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.