Converting Oracle Report (6i)into Excel - oraclereports

While generating oracle report in excel, it works fine. But column header are repeating as first column?

repeating header in excel may caused by two reasons
you may put the header in repeating frame, or you put it inside the loop which you get the result to excel, so you have to get it out to write it only once at the beggening .
also check your code about second column header and other columns, if this not true put additional info about your report here.

Related

Repeating SSRS Matrix Column Headers SSRS 2015

I have an Excel Pivot that I want to reproduce in a SSRS Matrix.
The Excel Pivot looks like this:
Notice the first column header "Full Face Masks" repeats on each column.
My SSRS matrix looks like this:
Notice how "Full Face Masks" does NOT repeat, despite repeating turned on.
As suggested, I've added an image of the Design View:
I've read through DOZENS of answers/sites related to repeating column headers.
I've even gone through the XML line-by-line to see if I can find an answer, but no luck.
So, in SSRS 2015, how do I make my report look like the Excel Pivot image. I KNOW it's possible -- I've seen it done but yeah... I can't figure it out.
[1 - Excel Pivot]: https://i.stack.imgur.com/kVNnG.png
[2 - SSRS Matrix]: https://i.stack.imgur.com/EKmq7.png
[3 - Design View]: https://i.stack.imgur.com/du4f8.png
This is a common problem which occurs when you use groups. You need to do the following thing to resolve this:
Add a row above the group, this row will be created as outside the group. Put the values that need to be repeated in the matrix and shown on the report.
Remove Group columns from the matrix. Do not remove the group, only remove group column from the matrix.

SSRS 2008 R2 Bug? Still? Dynamically hiding column or tablix and exporting to CSV

I originally thought this would be an easy task, but after several hours of research I'm reading there may be a SSRS bug when exporting hidden fields to CSV which doesn't make this possible?
What I'm looking to do:
I have a report with several columns (let's say 50). I have a parameter drop down for REPORT_VERSION that allows the user to select "Standard" (all 50 columns) or "Express" (only 10 columns). I've been able to display the 2 versions correctly, but when I export (the express version) to CSV it shows all of the columns (and or tablixs) and not what the results look like.
I've read about and tried:
If I create 2 tablix and hide one based on the parameter value, the export to CSV still shows both the visible and hidden tablix.
If I use =IIF(Globals!RenderFormat.Name="CSV", True, False) - this doesn't work for CSV output
Changing DataElementOutput = NoOutput. This hides the columns or table from the CSV output, but this can't be dynamically changed based on a parameter value.
Could this be done in the "custom code" section via vbscript??
Many of the articles and threads I read through dated back to 2010-2012 so hopefully there is a solution now? I'm really at a less here.
Help would be greatly appreciated. Thank you
I was able to get this to work in SSRS 2008 and 2012 based on your attempt #2. I created a dummy report with a data source query of
SELECT 'value1' as col1, 'value2' as col2
I then added the following expression to Column Visibility to column2
=IIF(Globals!RenderFormat.Name="CSV", False, True)
Note that the true and false are reversed from your sample. When the report was generated, column 2 was hidden, but when exported to CSV, column 2 was present.
To incorporate your parameter into the visibility expression, you could do something like this
=Switch(
Globals!RenderFormat.Name="CSV", False,
Parameters!REPORT_VERSION.Value = "Standard", False,
True, True
)
This will set the hidden property of the column to false if rendered as a CSV, or if "REPORT_VERSION" parameter is set to "Standard", else hide the column. This expression would need to be added to the Column Visibility of every column you want to hide in the "Express" version of the report.
EDIT
OK, I understand the issue now and can replicate it (I was backwards on the concept). You can explicitly set the visibly of a column to hidden and it won't show up in a CSV export. However, when you attempt to control this via an expression, the CSV export ignores this setting.
Data based exports look to be controlled by the "DataElementOutput" property. Setting this to "NoOutput" will suppress this that element from the CSV output. Unfortunately, it doesn't appear it can be controlled by an expression. Microsoft does not appear to have any plans to change this(https://connect.microsoft.com/SQLServer/feedback/details/431073/ssrs-programatically-controlling-the-dataelementoutput-property)
The Microsoft connect request hints at creating two tablixes and filtering out all the results for each one based on the parameter supplied (i.e. "Express" or "Standard"), additionally hiding the other tablix based on the parameter value. I tried this and it worked halfway. Although the other tablix had no results, it would still export the column headers and one blank row.
Now I'd be curious to know what a good solution would be to this issue.

Access report prints multiple pages when text box control source is using a multi-value field from a table

The Access 2010 report i have has a text box that uses a multi-value field from a table for its control source. I know multi-value fields in tables are bad but its what i have to work with at the moment.
The problem i am having is that even though its only a two page report when i physically print it or do a print preview i get more then 2 pages. So if the multi-value field has (2) values i will get (4) pages total with the same information basically (2) copies.
How can i prevent the report from printing a copy for each value?
Ok so I will answer my own question now that i have found a work around.
I found a work around that will let me print only the pages i want (ie the first two pages or one copy not several)
In my macro instead of using RunMenuCommand PrintObject that just prints the report.
I created a vba function
Function cmdPrint()
DoCmd.PrintOut acPages, 1, 2 //acPages, start_page, end_page
End Function
and used this function from the macro using RunCode cmdPrint()
Now I only get one copy not several. Like I said its a work around but it works for me and i hope that it will help someone else someday with the same problem.

How to display a CSV list of data in a column of an RDLC file

I have a report embedded in a web application that works fine but I need to make a tweak to it. Right now the report basically will dump all the rows from a view, I have some filters set up but I have disabled them to simplify this and get this working. I spent all day yesterday trying to get this to work correctly, attempting many different combinations of things. The end goals is to take a set of data and display it as a comma separated list within the same row that the data belongs to.
My data is a list of projects, each project can have multiple personnel associated with it, instead of having a new row for each person we want all the people in one column separated by commas that belong to the project. A trivial task in SQL.
SELECT dbo.APM_Project.Code, dbo.APM_Project.Title,
(STUFF((SELECT(', ' + vi.NameFirst)
FROM view_OrganizationPerson vi
JOIN APM_Project as p ON vi.ProjectId = p.Id
WHERE vi.ProjectId = APM_Project.Id
AND vi.Role = 'Principal Investigator'
AND vi.Status = 'Active'
FOR XML PATH('')), 1, 2, '')) AS PI_
FROM dbo.APM_Project
Also I have tried the SUBSTRING method of producing the comma separated list, all of these methods work great when I run the SQL script, they also work when I preview the data from my dataset in visual studio so something must be right. I get the results I want however when I run the application, I get no data in the column using the expressions of
=Fields!PI_.Value
or
=First(Fields!PI_.Value, "DataSet1")
So I'm not entirely sure where to go from here. This seems like it should be a pretty easy task, also when I run the expression
=Fields!PI_.IsMissing
it comes back true, so something is being lost at runtime and I just can't figure out what it could be.
All other data of the project is present within the text boxes, just the PI_ column is left blank.
Question is:How do you display a CSV list of data in one column of a row of data in an RDLC file?
Turns out this is valid. I needed to update the .aspx page with the changes made to the data adapter itself since I changed the data set.

Reporting Services displays #Error if no rows to display.

I'm creating a rather simple report with Reporting Services and noticed that if my data source (which is XML / Web Service) returns no rows, I get #Error text in the text cells that contain some formatting or aggregation logic. It displays one row + the totals row with all datasource cells empty except for the aforementioned calculated ones.
Any idea how I can get rid of these messages?
One thing you can do is set conditional visibility on the details row accessing the "Hidden" property.
=IIF(CountRows("DataSetName") = 0,true,false)
Another thing you can do is check the fields "IsMissing" property before setting it.
=IIF(Fields!Item.IsMissing,"",Fields!Item.Value)
You need to do data validation within each of those cells to make sure something is not blank. It is erroring because it is trying to do a calculation on a blank value. Try:
=IIF(IsNothing(Fields!Item.Value),"",Do Calculations)