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

need help with content type application/msword formatting page as envelope

Hello,
I've searched the web, and can't seem to find a good reference for
msword ( content type ) formatting.

I am presenting my information as microsoft word doc. I was able to
format the text the way i wanted, but still not sure how to format the
page.

In RTF1, I can format the page as Envelope so that every other page is
a invoice address ready to print on envelopes.

I switched from RTF1 to content type application/msword, and can't find
a way to do the same thing. Please let me know if you have any helpful
info.
TIA

Nov 19 '05 #1
2 4838
I think i found it.

Did some reverse engineering and this looks like the trick.

first define the style:

@page Section135
{size:9.5in 297.0pt;
mso-page-orientation:landscape;
margin:.25in .5in .5in .4in;
mso-header-margin:.5in;
mso-footer-margin:.5in;
mso-page-numbers:0;
mso-paper-source:4 0;}
div.Section135
{page:Section135;}
than, do

<div class="section135>...</div>

in the testing process.

Nov 19 '05 #2
ahh, this will work, however my page does not seem t be including those
definitions properly.
almost as if i shouold be adding it to a property instaed of adding to
Response.Write(...)

Nov 19 '05 #3

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

Similar topics

0
by: Arg | last post by:
I posted this to alt.comp.lang.php last week and got no response so I am reposting it here today... I am trying to use the following script to allow users to download files with some of the file...
1
by: ryanmhuc | last post by:
I'm sending back a file as the content type but when the file name is of test.class.php the file dialog (I'm using IE 6 Windows) saves it as test.class.php. If I send test.php it saves it as...
5
by: mike | last post by:
Is there any way I can change the content type when I open a new window other than opening a script in the open statement? mywin =...
0
by: Chris Davoli | last post by:
I'm trying to change content type of an ASPX page in the browser and send some data so the browser mimics an EXCEL spreadsheet (changed the content type to excel for the ASPX page), but its...
4
by: shypen42 | last post by:
Hi, I'd like to know how to serve web pages as "cleanly" as possible, maybe validating them if it's possible. How should I do to both respect standards *and* have it work under the various IE...
3
by: timothy | last post by:
My web application pushes an extemporaneous PDF file out to a web page. It adds a 'Content-type: application/pdf' header to the HTTP headers, but the web server automatically adds a 'Content-type:...
12
by: =?ISO-8859-1?Q?Une_B=E9vue?= | last post by:
two possibilities or the attribute type of script : text/javascript (the one i usually use) application/x-javascript what are the differencies between both ? depends on the html content ?...
0
by: ftech | last post by:
I am saving PDF files in SQL Server 2005 as an image and retrieve them back by their document ids. I use the following code: byte buffer = (byte)dtDoc.Rows; if(buffer != null) { ...
10
by: Aaron Fude | last post by:
Hi, I have a webpage delivers, let's say, a pdf document. The page is password protected so itially it shows HTML, but when the user logs in the page is reloaded with...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 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 former...

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.