473,748 Members | 2,170 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 2869
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*****@lifeti meinc.com> writing in
news:Oa******** *****@tk2msftng p13.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******** ******@TK2MSFTN GP12.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******** *****@TK2MSFTNG P15.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

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

Similar topics

0
6903
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 and returns a SOAP response containing a single element in the SOAP body. The client receives the response and writes its content to standard out via the SOAPMessage.writeTo() method. The response received looks correct: <SOAP-ENV:Envelope...
0
1151
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 look like this: <Envelope xmlns="http://www.w3.org/2001/12/soap-envelope" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.w3.org/2001/12/soap-envelope soap-envelope.xsd">
5
14455
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" (or send raw output) to accomplish this. I'm trying to figure out how to set the PaperSource property and haven't had any luck! I've searched MSDN and Google and can't find a single example.
1
2194
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 http://www.gotdotnet.com/Community/UserSamples/Details.aspx?SampleGuid=65a1d4ea-0f7a-41bd-8494-e916ebc4159c) and used the Studio to invoke the service. It gives you the option to view the envelope and it looks like this:- <?xml version="1.0" encoding="utf-16"?>
4
2832
by: dgk | last post by:
Anybody have any code for selecting an appropriate printer and printing an envelope? Greatly appreciated.
0
3601
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 don't use elements in body with a xsi:type attribute! The Problem is that foo:person is an abstract type and foo:driver is dervived from it. So using a foo:person is not allowed until specifing
0
3061
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 on the right road. I have to talk to an old Java webservice, so that's why I don't have an WSDL. I'm sending it with HTTPWebRequest or HTTPSWebRequest with VB but I needed a header like this: Request:
2
9795
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 tag, but I get None. data = """<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/ soap/envelope/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
0
2086
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 from the regular tray instead of the feeder tray. this how we set the envelop Code in PrintEnvelope_BeginPrint event With PrintEnvelope.DefaultPageSettings .PaperSize = New...
0
8831
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
9376
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
0
9249
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
8245
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
6796
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
4607
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...
0
4877
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
3315
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2215
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.