473,608 Members | 2,264 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 4848
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:lan dscape;
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:Section13 5;}
than, do

<div class="section1 35>...</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
1739
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 name stripped off. This script is for use on my company intranet and only has to work with Internet Explorer 6. When the files are uploaded (through another PHP script) they are prefixed with a timestamp to prevent files with duplicate...
1
2033
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 test.php. I need it to default save as "test.class.php". Anyone know why this is and how to get around it? Heres the exact code I'm using. header('Content-Type: application/octetstream; name="test.class.php"'); header('Content-Type:...
5
15388
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 = window.open('','rpt','width=600,height=425,top=50,left=0,scrollbars=yes,toolbar=yes,resizable=yes,dependent=no'); mywin.document.write("Content-type:image/svg+xml"); In this example I would be changing the content type to svg.
0
1796
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 getting the data from a previous page. I'm doing a server transfer from a previous page. I've also tried to flush the buffer at the page load before I do anything, but this doesn't work. Below is my code. I'd appreciate anyone who could lead me to a Q...
4
1962
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 versions? Is there a "best practice" regarding the content type of a web page using quite some amount of Javascript (and "AJAX"-server querying)?
3
9569
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: text/html' header before mine. Firefox embeds this in a web page just fine, but IE always brings up the full Adobe reader application to show the file. Is this caused by this first header? The web server gives me no way to remove it. I...
12
5251
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 ? for example html 4.0.1 versus xhtml 1.1 ???
0
2200
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) { Response.ContentType =
10
1791
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 "window.location.reload(true)", but IExplorer is not smart enough to realize that the content type has changed and just spits out pdf onto the screen. How does one fix that? Thanks!
0
8496
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, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed. This is as boiled down as I can make it. Here is my compilation command: g++-12 -std=c++20 -Wnarrowing bit_field.cpp Here is the code in...
0
8475
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...
1
8148
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8338
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
5475
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
0
3962
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
4024
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
2474
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
0
1329
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.