Setting all the Chart attributes in a report (rdlc) through code in report viewer - reportviewer

I've created a RDLC file to view report and i've a line chart in it. I want to set the properties of the chart such as category, X axis interval, Y axis interval, colors etc dynamically. How can i set them through code? I'm using C#.Net.
Thank you
NLV

I'm hoping there is a better way, but as you posted this a while ago I'm guessing there is not. The only thing I can think of is that since the .rdlc file is actually just XML, you open it in the C# and change the attributes to what you want depending on the data you have.

Related

How to move the parameter position (y-axis) at run time using crystal report

I am working on a project in a vb.net, which generates a crystal report I want to change the position of the parameter (X-axis and Y-axis) according to the user requirements in the report I have found the built-in formula to change the x-axis but not found to change the y-axis is there any solution to change the coordinates of the parameter in runtime??
please guide.
image of the x-axis coordinate changing

SSRS 2016 - Change CSS of Report Server

I want to change the css file of my reports.
How can I do it with reporting services 2016?
The old methods didn't work for me (add style sheet file or make changes at the HtmlViewer file).
To just hide the headers and the option to navigate back to home change the link address to the report from
http://Reportserver/Reports_Instance/report/Folder/Report
to
http://Reportserver/ReportServer_Instance/Pages/ReportViewer.aspx?/Folder/Report
So you only get to see the report
To change the style of your report, it is intuitive. You can select the colors you want to include, chart borders, chart styles, etc directly on the GUI. I highly suggest that you rephrase your question to be more specific. Then, we can help you get the answer you are looking for.

How to export Gantt view to pdf?

I am using openerp 6.1 and I have created a project in which I have my phases and tasks in each phase.
I would like to print the gantt chart but there is no option there. Please advice how I can get this done.
Their is default way out to have it on PDf but what you can always do is prepare one report to plot that report on pdf like Burn-down chart you have on project_scrum module, Using Pychart and reportlib engine, and you can produce effective result, or you can take moden web browser screen shot utility at the end.
Thank You
I agree, there really should be print / PDF buttons for every page to save the current view :(
There are 2 workaround options I can think of:
Use reporting to generate your own report of the chart (I would suggest using the webkit_report)
Print the HTML view to PDF.. ie, capture the html code of the view and print it, or send to another system to convert to PDF (using wkhtmltopdf). I have an example here that might help you: http://timothysolomon.co.za/work/openerp-printing-with-javascript/
Good luck, maybe in version 7 they will have this by default.

Excel: Adding a Connector Line In a Chart (Have to Use a Macro)?

So I'm working on this chart in Excel, and the chart looks like two sides of a triange, like the picture at the link below:
http://a.imageshack.us/img832/6207/triangle.png.
I'd like to make a line (like, with an autoshape for example) that connects the 2 endpoints to form a triange; ie a line going from coordinates (4,1) to (4,5). I tried doing this by creating a seperate data series in excel with the coordinates of the connecting line, like:
4,1
4,2
4,3
4,4
4,5
However, in excel, all lines in this chart must have the same x coordinates. Does anyone know how to get a connecting line automatically? Say, with a macro or something? Reason I ask is because I want to be able to change these coordinates, and I want the connecting line to adjust with very little effort (ideally I could write a macro and assign it to a button that when you click it would adjust the connecting line). I have some very limited macro experience, but this is just beyond me. The type of chart I'm using is a standard line chart, where the description given by excel is "Displays trends over time or categories". Anyone know of a good resource or have some advice? Thanks.
PS I solved this problem by changing the chart type to a scatter chart, but this messed up the axes and scale, and required that those be adjusted, so I think adding a line in this manner automatically will be easier.
The scatter chart worked OK.
Used formulas included in the following image.
Perhaps you should include an image showing the problems you found.

Formatting multiple fields at once in RDL or RDLC

Over the years, I've been working with SSRS reports (RDL and RDLC) but I have not found a solution to this problem: Let's say I have x number of fields in my report. I would like to highlight all the fields at once and modify the background-color, foreground-color, font and font size, for all fields at the same time.
Is this possible? I've searched on the web and I've experimented with the report designer, and I have not found anything that allows me to do this (other than modifying the underlying XML directly, which is not an option).
Select all the controls in the designer and press F4 for properties. Change the background color, font etc.
It is possible to just select all fields and go to properties->format->paste from another fields format. That's it.