StimVinsh / xdocreport

Automatically exported from code.google.com/p/xdocreport
0 stars 0 forks source link

insert a Carriage Return #123

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1.
2.
3.

What is the expected output? What do you see instead?

What version of the product are you using? On what operating system?
0.9.7 , windows

Please provide any additional information below.

 how can i insert a Carriage Return in a paragraphe without having to use listes or loops???
i tried this :
string tst = "first line first line ";
tst = "\n"+"second line blabla";
i guess that's not how it works :).
thanks

Original issue reported on code.google.com by Nhoud...@gmail.com on 20 Jun 2012 at 2:58

GoogleCodeExporter commented 8 years ago
Hi, 

I suppose you have tried that with docx (not managed because I don't know which 
XML I must generate). If you test with odt it works.

But for manage your case, I suggest you to do that with text styling 
http://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainTextStyling

Regards Angelo

Original comment by angelo.z...@gmail.com on 20 Jun 2012 at 4:29

GoogleCodeExporter commented 8 years ago
yeah, that's an alternative :).
how about break pages ? i mean start in a new page is it possible??

best regards

Original comment by Nhoud...@gmail.com on 21 Jun 2012 at 12:01

GoogleCodeExporter commented 8 years ago
> how about break pages ? i mean start in a new page is it possible??
No it's not possible today. Could you tell me what you wish to write as value 
for manage page break (which html?).

But I don't know if it's possible. To do that I must study the docx and odt XML 
content.

Regards Angelo

Original comment by angelo.z...@gmail.com on 21 Jun 2012 at 12:06

GoogleCodeExporter commented 8 years ago
I don't think their's something in html that allows to break page, the entire 
web page is just one page.

Original comment by Nhoud...@gmail.com on 22 Jun 2012 at 10:12

GoogleCodeExporter commented 8 years ago
Hi,

I think it's possible to manage page break with docx and odt (I have studied 
which XML we must generate). So my idea is to use style attribute HTML to 
manage page break like this : 

--------------------------------------------------
<p style="page-break-before: always">blah blah</p>
--------------------------------------------------

like explained at http://www.cybertext.com.au/tips_HTML_pagebreak.htm

What do you think about this idea?

Regards Angelo

Original comment by angelo.z...@gmail.com on 23 Jun 2012 at 1:04

GoogleCodeExporter commented 8 years ago
Hi, 

I have implemented the page break before/after for docx => 
http://code.google.com/p/xdocreport/wiki/DocxReportingJavaMainHTMLTextStyling#At
tributes and for odt => 
http://code.google.com/p/xdocreport/wiki/ODTReportingJavaMainHTMLTextStyling#Att
ributes

It works with only p element (is it interesting to manage other element like 
h1, h2?).

with HTML Text styling. By waiting the release of 0.9.8 you can test it by 
getting the source of Git or use Maven.

Regards Angelo

Original comment by angelo.z...@gmail.com on 25 Jun 2012 at 12:56

GoogleCodeExporter commented 8 years ago

Original comment by angelo.z...@gmail.com on 19 Sep 2012 at 4:16