Microsoft Reporting WebForms Report Viewer - Exporting to Excel - asp.net

I have a report viewer that I am using to export to PDF and Excel. Sometimes some of the data in the tables is longer than a singular line.
When exported to PDF the fields that need more height are automatically given it. Yet when I export to excel it remains in the original height and doesn't grow to display all the data.
I want the cell heights to automatically grow to display all the data on screen. I have set CanGrow to true but this has no effect (apart from working when exporting to PDF).
Has anyone had this problem before and can share a resolution?
Thanks

OK, after not receiving any answers I delved in to this one myself.
It appears that text doesn't wrap in excel when the cell is a number of merged cells together.
So in the report viewer if all text areas and items aren't lined up with one another or if one is twice as long as two others then they will be placed in merged cells to make up for the crossover.
It means that the chances are these isn't a solution to the problem, unless all your text areas are identical in width or you can alter the layout so that those that require wrapping to new lines will only take up a single cell.
I done this by putting everything in a table, and knowing that if I merged any cells then text wrapping would not be possible.
I hope this will help someone out there!

Related

Oracle reports output like HTML table from single database cell

Is it possible to create HTML-like table in Oracle Reports (output format: .rdf) based on database cell content ?
Report is big, with lot of content, from which one should be formatted cell content.
What is currently:
current data displayed in ready report - database cell content
What is requested:
what should be displayed
Using HTML formatting in this case doesn't work,
https://docs.oracle.com/cd/E15523_01/bi.1111/b32122/orbr_concepts2008.htm#RSBDR481
HTML tags are very limited for an .rdf report.
Is there any way to achieve this functionality, using another technique?
If you used the Wizard to create a report (you should have; it does a lot of dirty job for you), it also creates layout and puts everything into its place, creating a "grid" (table), something very close to what you need.
Navigate to paper layout editor where you can choose to format lines (cells, frames) - in the vertical toolbar, pick a line color (for example, black). In (horizontal) menu, go to Format menu (and then Line and Border submenus), selecting borders you want (top, bottom, right, left).
Once you're done, run the report and you should see a pretty table.
Saying that "output format is .rdf", that's wrong. Report is saved as a .rdf file, but its output can be, for example, a PDF file.
Never mind that, it was just a side note.

RDLC Local Reports KeepTogether does not work

I’m having problems with an rdlc local report. When exporting to Excel, I want to keep a table on one page, and if it doesn’t have enough space to entirely move it to the next page.
I have tried the KeepTogether property, but it doesn’t work. I have also tried other suggestions like putting the table inside a list or a rectangle, nothing helps.
Forcing page breaks dynamically is not easy, and in this case the Excel report contains 2 sheets, which is not what we want.
Does anyone have any idea how to solve this? It is a Windows Form project.

ssrs header for list which is repeating after page breaks

I have a layout for report services and subreports. My subreports are lists with headers. I need to get header for each subreport on pagebreaks. I've tried to use a table for this task but I didn't manage them to display headers on pagebraks though I was using repeat on each page or something like this and others (I'm really frustrated about whole of a lot those properties for silly task and not working). Maybe someone can suggest solution for this task without using a table? I've found solution to use header of subreport for this but this didn't work out as well.
I tried to Set "Repeat header rows on each page", "Repeat header columns on each row" and tried to set "RepeatOnNewPage" property of the header in the Advanced mode but everything was futile. All these things I tried to use even for a simple table without lists.
The report is rendered to PDF... maybe this repeating headers feature doesn't work for PDF?
Found the solution. The problem was that I've been adding rows to table outside of the group (the first row is marked with three horizontal lines at the row pane). After I added lines inside of this group - the header started to display after the page break.
As for lists... I found out that one can use table as list... If one adds source of data to the row then it will be multiplied if several data sets provided.

Inserting text below image on download

I have a collection of images that a client can download should they desire. However, the boss came to me with a requirement to try and add text at the bottom of image. Unfortunately due to space constraints on the server, I can't simply use Javascript to add the information to the bottom of the page when it is uploaded.
Ideally the format should two rows with two cells each. Any help on this would be appreciated.
I believe this is what you are looking for.
http://mvark.blogspot.com/2004/12/code-programmatically-add-text-to.html

Issues with Exported Crystal Report to Word Document

I am having a minor issue playing with my exported Crystal Report, I can generate the reports just fine on our website, however when I attempt to export them to Word documents I don't quite get a document I can do much with.
i.e.:
I can't position the generated text anywhere in the document, it is almost 'frozen' in place. I would expect if I moved the cursor above the report text and pressed Enter a bunch of times I could remove the report down the page, however it just won't budge
All the text seems to be in its own box and I can't move it around or do anything with it.
Any thoughts? My expectation would be once it is exported to Word I could play with it like a Word document, move the text down the page, edit the document, do something with it.
Thanks!
btw, this question is similar to the one posted here, but this one wasn't tagged properly and I don't have enough karma to fix it:
https://stackoverflow.com/questions/434381/word-formatting-not-intact-when-exported-from-crystal-reoport
I'm afraid that you can't do much about it. Crystal Reports is very much orientated towards putting data in fixed positions on pages, so when it exports to Word it puts its data into text boxes because that's a similar thing that Word offers. You could make the Crystal Report page consists of a giant text field and using spaces and newlines to get the data into the right place, which will probably then give you a giant textbox in Word.

Resources