JasperReports html export - html

I have developed a report in JasperReports, it appears fine when exported as PDF, but when I export same report as HTML it appears smaller in size. Does anyone have any idea, how is it possible to set the parameters so that it displays properly in PDF & HTML. Also is it possible to specify the pageWidth height etc. as percentages

Look at the source of html, you may find the font unit is px, however PDF is using the font unit pt, that's why the html font is smaller than pdf. So you may need the following code to set the html font unit to pt.
exporter.setParameter(JRHtmlExporterParameter.SIZE_UNIT, JRHtmlExporterParameter.SIZE_UNIT_POINT);

Related

html to cshtml - unexplained page shifting

Built a web-page using atom. Then, copy and pasted code into an cshtml file for an ASP .NET web project.
Almost everything shifts. Fonts, buttons, images, and page header shrink in size.
cshtml file's width measures different than the original html file (~300px difference) but I am using the exact same code.
Anyone have any idea what's going on here? It's as if there is an extra 300px in my view when using cshtml.
references:
html
cshtml
Github links for my code:
ASP .NET (one with issues) => https://github.com/thomasbaldwin222/WestfaliaHosting
HTML => https://github.com/thomasbaldwin222/Westfalia

Chrome browser doesn't display <strong> tag in HTML

That's my HTML code below
<p><strong>bold 2</strong></p>
But it doesn't display right in my Chrome browser.
You've got a user stylesheet that changes the font. The font you picked doesn't have the correct font weights (700 for bold). Use another font or fetch all the weights of that font
Not sure - why it's not working for you. I would say try writing that code again, save and reload your webpage.
I tried it and it works. See - http://jsbin.com/zasineraci/1/edit?html,output
If not, try using instead.

Oulook 2010 displays images in mail signature at 166%

When I try and create an HTML email signature and choosing it as my signature in Outlook the resulting display is horrendous. It literally ignores all the inline styles I specify on my text (eg, font-size:13px) and appears to enlarge things by about 66%. Even when I use the signature editor, my images end up enlarged. All the content lives inside a table layout.
I've tried many fixes from around the web, including opening the HTML in a browser and selecting all, then copying and pasting into the editor window. Even when I insert the image via the editor, it still comes out at that bigger size on the receiver's end. I've tried adding additional headers too.
I'd appreciate any input to help me solve this. The signature works fine in Thunderbird.

How to apply styles to export to pdf for crystal reports in htmltext

Here what I want to do.
On the web page, user edits a text area with html markup. Only limited, working html tags for the pdf are used.
Then the user will take the text, and make a crystal report out of it (content details and footer sections).
Then the crystal report will be exported into pdf and downloaded.
Currently, the format is off and I wanted to apply some css styles in order to fake a few line breaks with margin/padding calls.
It's not able to access my css file which is being loaded in this page. I'm not able to set embedded styles to my report as it doesnt work. Maybe i'm not doing it right.
Has any one been able to format crystal reports with HTML Text?

How does Chrome know how to format Microsoft Excel exported HTML without specifying the stylesheet?

Never mind. Excel does generate .xl99999 styles in a <header>. When this rich text editor value is set with HTML content, it adds the styles but when you try to get the value later, it only returns the <body> tag and strips the styles. I saw the contents after getting the value and submitting to the server. I guess you could say there is a bug in the rich text editor, but I will attempt to work around it.
How does Chrome know how to format these CSS classes exported from Microsoft Excel into HTML when I never specified the stylesheet to use? It is just a pure HTML string that was sent via an API so there is no stylesheet definitions. The class .xl6613001 is never defined, nor any others. So how does Chrome know to use a given background color?
Minus http://i.minus.com/iX77mOMM3dNNS.png
Here is the full output from Excel. Notice the lack of color styles.
The rich text editor is com.gc.gwt.wysiwyg.client.Editor, https://code.google.com/p/gwt-html-editor/wiki/GettingStarted.
I searched the Resources tab for '.xl' and nothing was found.
It does not format colors if I look at the raw HTML as a file.