473,378 Members | 1,555 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,378 software developers and data experts.

page break... html to word or email

hi all im having troubles with a form that i have created for my website (application form)

basically i need to keep the webpage, page-break settings transfered into an email.

ive used the wc3 tutorials and the following page breaks individually to attempt to get the document to split.. with no avail.


Expand|Select|Wrap|Line Numbers
  1. <p style="page-break-before:always"/>
  2.  
  3. <br clear="all" style="page-break-before:always" />
  4.  
  5. VBCRLF
here is the webpage and a copy of the php file that emails the webpage data
application.html
php file uploader1.txt
any suggestions or ideas that could help me would be very much appreciated.

cheers

--dragon
Oct 10 '07 #1
4 12319
I just had the same issue where something that used to work quit working in word I had defined (in head or CSS):
Expand|Select|Wrap|Line Numbers
  1.     H3 { page-break-before: always }
  2.  
and placed in the body where ever I wanted a break:
Expand|Select|Wrap|Line Numbers
  1. <H3><!-- Next printed page --></H3>
  2.  
Apparently comments and white space is ignored now (???) so I had to use a space like so:
Expand|Select|Wrap|Line Numbers
  1. <p style="page-break-before:always">&nbsp;</p> 
  2.  
Hughie
Nov 14 '07 #2
drhowarddrfine
7,435 Expert 4TB
Dragon,
Validate your html for your list of 26 errors that need fixing. Then validate your css for the error there.
Nov 15 '07 #3
Correction: To avoid the space at the top of the page wrap the content of the page and not the space of my original reply or add the style to the first paragraph of every page:
Expand|Select|Wrap|Line Numbers
  1. <p style="page-break-before:always">Content of next page</p> 
  2.  
Expand|Select|Wrap|Line Numbers
  1. <p style="page-break-before:always">&nbsp;</p> 
  2.  
Nov 15 '07 #4
Correction: To avoid the space at the top of the page wrap the content of the page and not the space of my original reply or add the style to the first paragraph of every page:
Expand|Select|Wrap|Line Numbers
  1. <p style="page-break-before:always">Content of next page</p> 
  2.  
cheers for the input so far.. however we have a new problem...

ok something weired happens with your line of code...
ill try to explain the best i can

after i have input the code as you described (in both ways) it goes in nice and smoothly ect...

after the form has been submitted and i receive the email with the attached form, the html/php code shows a blank line of code instead of the page break i inserted...

eg..
_________________
Expand|Select|Wrap|Line Numbers
  1. on my side
  2. '</head>
  3. '<body>
  4. '<p style="page-break-before:always">some sort of content</p>
  5. '</body>
  6. '</html>
  7.  
  8. after i receive the email:
  9. '</head>
  10. '<body>
  11.  
  12. '</body>
  13. '</html>
  14.  
___________________

thats exactly what happens and i have no idea why....

any ideas?
Jan 28 '08 #5

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Matthew Robinson | last post by:
i wrote a search page for my site (searching through a mysql database) but when i type in more than one word (eg "item three") in the search field it gets passed to the page as a single word...
1
by: Mark | last post by:
Hi - apologies in advance if this is not the correct forum - tried searching loads, and still to find a workable solution. Generating a word document from ASP - no problem. Inserting page breaks...
18
by: Gustaf Liljegren | last post by:
IE does, and I can't remember this used to be a problem in Netscape. I guess someone in the Mozilla team just came up with a Smart Idea about the True Semantics of the Hyphen Minus character. :-(...
12
by: enak | last post by:
I have found some code that shows how to convert an html form to Word. The message said to simply put the following in the Page_load: Response.ContentType = "application/ms-word"...
2
by: moondaddy | last post by:
I have a page that I'm making for the sole purpose of printing and this page makes 1.5 printed pages. Is there a way to force a print page break at a specific place so when the user prints the...
3
by: Jeff | last post by:
This is not as simple as I thought. Using Print # I am outputting content for a text file. I wanted at certain points to force a page break so I thought a Chr(12) for a form feed may work. If...
2
by: CM | last post by:
Hi, Could anyone please help me? I am completing my Master's Degree and need to reproduce a Webpage in Word. Aspects of the page are lost and some of the text goes. I would really appreciate it....
1
by: Erik K. Schindeldecker | last post by:
Good Afternoon, I am exporting a series of datagrids to Microsoft Word, and cannot figure out how to force a page break between each datagrid. Does anyone know of a character or command I could...
7
by: SteveM | last post by:
I am sure this is an easy question, but being relatively new to ASP.NET programming, I can not quite grasp what I need to accomplish what I need to do. What I have is a word document that is...
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: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?

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.