SSRS HTML rendering - html

I need data driven subscription on a report in ssrs 2008 that put html or mhtml into email message. The reason is to have opportunity to view reports in mobile devices without additional applications except email, thats why I cant use pdf or excel format.
When I convert report into html4.0 file by clicking on “Export” button everything is fine report looks exactly as template and there are enough space between pages.
But when ssrs creates email with html file report pages slides over each other. When I zoom out report it increase the distance between pages.
I figure out the problem. Manualy created report has such a style for every report page
<div style="WIDTH:100%;" class="ap">
but sent html has:
<div style="HEIGHT: 100%; WIDTH:100%;" class="ap">
If I manually comment “HEIGHT: 100%” pages become in readable style.
So Imy question is how to set up ssrs to create html without “HEIGHT: 100%”.
I really don't want to create external html processor to update html generated by SSRS.
Thank you for your help.

have you tried making the div style="HEIGHT: 100%" part of you style for each page, but maybe using different values (instead of 100%) to see if you attain the same result? It may be that 100% is too much but a smaller % may be ok and including the height in your style should ensure that the Height:100% is not embedded at export. Hope this helps.

Related

External Image not shown because of parameters in URL

I'm struggling with SSRS to get external Images shown on my report.
Situation/Environment
SSRS 12
Images are hosted on Akamai (Caching Server)
Problem
If I call the image by http://server/folder/image.jpg I see the image in Report Builder Design View, Preview and online on the server. HTML on the server:
<img onload="this.fitproportional=true;this.pv=0;this.ph=0;" height="155" src="/Reports/Reserved.ReportViewerWebControl.axd?
ReportSession=0vesr555hdhfqebcbzbyf4el&Culture=1031&CultureOverrides=False&UICulture=7&UICultureOverrides=False&ReportStack=1&
ControlID=db6faa0405f142afa197478522ab25ae&OpType=ReportImage&IterationId=822ad1f6603e4ed5a7669b1863d74b1f&
StreamID=73e6746a0121466fa7e9c958c3dfb384" width="96">
If I call the image by http://server/folder/image.jpg?downsize=100:* I see the image in Report Builder Design View but not in Preview and not online on the server. HTML:
<img onload="this.fitproportional=true;this.pv=0;this.ph=0;" height="155px" src="">
Testing
That behavior can be tested with these examples:
Working: http://tech.akamai.com/image-manager/img/mountain.jpeg
Not working: http://tech.akamai.com/image-manager/img/mountain.jpeg?downsize=640:*
I have to use the downsize parameter (and others) as the images are stored in full resolution and the report gets really big if they're not resized. The list of images is dynamically loaded by a SQL-Dataset and there are tons of images so I can't resize and save them somewhere else...
I tried many URL/parameter constellation and my conclusion is: SSRS can't/won't handle the = (equal sign) in the image path.
All other characters seems to work without trouble only the equal sign.
Did somebody had the same problem and found a solution for handling "=" in SSRS external Image URL paths?
Have you tried using the ASCII %3D rather than an equals symbol?

Add additional static page to end of an SSRS report with no header/footer

I have a requirement for a user to have a either a static pdf or static image to be uploaded to the database. That needs to be appended to the end of an SSRS report. The report has a header and footer, which cannot be displayed on the last page and no body can be displayed either. The report must basically generate its report completely, then append a full page with just the static piece.
I have tried to expand the footer out to an additional full page height minus the margins, so 8.5 - .25(top margin) - .25(bottom margin). This produces really funky results. There is a first page with a header and a second page with the header/body/footer, but the pages are something like 14-15 inches tall instead of page breaking it actually reformats the page.
Is there a way to append an image(or PDF) that takes up a whole page to the end of an ssrs report without the header/footers?
You could try this:
create a new report
add a Rectangle region, size it to the whole page
set the Page Break > BreakLocation property of the rectangle to "End"
add a Subreport inside the Rectangle and set it to your original report
The new report should then generate the original report plus an extra page.
As the additional page is static you could simply create a new PDF and merge it at the end of the report when exporting to PDF.
Both PDFSharp and iTextSharp are possible libraries you could use to merge PDF files, there are plenty of tutorials and demos you could consult. Even here on StackOverflow for example: Combine two (or more) PDF's

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?

SSRS report not obeying page breaks

I inherited a report in SSRS 2005
It is a very simple report with a Page Header, Page Footer, and only a table in the body
The table has one group (by Country) I have tried to set Page Break of the group before, after and both. No matter which option I choose the report on the screen, through the report viewer through the browser, always shows as one continuous page instead of the desired result of Each country starting a new page.
Any ideas of what else to check which would cause this behavior?
Thanks
Edit: In Pdf Export the page breaks work
Edit: to clarify I am referring to the report viewer through the browser, not HTML export
It works in export to PDF, but not elsewhere is because page based outputs obey page breaks.
HTML is not page based. HTML breaks on interactive page height.
This may help: http://technet.microsoft.com/en-us/library/dd255244.aspx

More pages when exporting to pdf than word?

I have a ssrs report that when exported to word gives ~7 pages. When exported to pdf it suddenly gives ~18 pages, a lot of blank ones only including header and footer.
I have a few page breaks in the report so information belonging together starts on a new page as the customer wants it. This particular report should be used for word, so it looks fine. But there was complaints about it not working properly for pdf anyway.
The Body width is smaller than Page width, Left margin, Right margin which according to this link can be an issue: How to get rid of blank pages in PDF exported from SSRS
The total height however is 140cm.
Suggestions / Help is appreciated.
just try to set "ConsumeContainerWhiteSpace" property of Report to True, by default its False.
I had tried that in almost same issue as yours and it worked!!!!!!!!
The issue I had was the format became .005 cm wider than what the Standard A4 doc allowed me, 210x297mm.