How to freeze the columns in excel exported from SSRS report??
We have created a report for our client. The client wants the report in excel format. As there are nearly about 30,000 rows in the excel. Client wants us to freeze the column header names in the excel so that even after scrolling down they
will be able to see the column names.
can anybody have idea how to achieve this in SSRS?
Hi Shard,
Thanks for your post, You can achive your requiremets by using the below logic. hope this will help you.
Steps to achieve it
1. Select the tabix and click on Tablix properties.
2. In the General tab under Column Headers section you can see "Keep header visible while scrolling" checkbox, check it.
3. Now the header row will be remain fixed in the report.
OR
1. In the grouping pane, make sure to turn on advanced mode (click on the small black down arrow on the far right of the grouping pane)
2. Select the corresponding (Static) item in the row group hierarchy
3. In the properties grid, set RepeatOnNewPage to true
4. KeepwithGroup to After
OR
1)Freeze the header of all columns[ Freezing table header ] : To do select static member of table header row from row groups [ Advanced Mode ] and set FixedData to true
2) Freeze the initial 2 columns : To do select static member of columns in column group and set fixedData to true .
How do you freeze the tablix header row in an Excel export file in SSRS 2008
Suhas Kudekar
Mark as Answer if this resolves your problem or "Vote as Helpful" if you find it helpful.
My Blog
Follow @SuhasKudekar
Similar Messages
-
How to enhance the Excel export from Crystal Reports
Hello,
I am new in Crystal Reports and I wonder if it is possible to enhance the Excel export from Crystal Reports with post-processing that would be applied to the Excel exported file.
By example, is it possible to freeze the window panes, so rows and columns are frozen in place on the screen?
Is there any possibility to obtain the file exported to excel to work with.
Or maybe there is some ways to parametrize the Excel export from Crystal Reports?
Any suggestions are welcomed.If you are using Crystal Reports 2008 you can use the Report Application SDK that is now available.
It has a object called PrintOutputController that has an export method that allows you to get access to the exported file before you send it to the user.
Check the Developer library and the samples for details.
<a href="/blog/10">Rob's blog - http://diamond.businessobjects.com/robhorne</a> -
How to Customize the Message "No Row Returned" from a Report
Hi,
I've been trying to customize the Message "No Row Returned" from a Report.
First i followed the instructions in Note:183131.1 -
How to Customize the Message "No Row Returned" from a Report
But of course the OWA_UTIL.REDIRECT_URL in this solution did not work (in a portlet) and i found the metalink document 228620.1 which described how to fix it.
So i followed the "fix" in the document above and now my output is,..
"Portlet 38,70711 responded with content-type text/plain when the client was requesting content-type text/html"
So i search in Metalink for the above and come up with,...
Bug 3548276 PORTLET X,Y RESPONDED WITH CONTENT-TYPE TEXT/PLAIN INSTEAD OF TEXT/HTML
And i've read it and read it and read it and read it and can't make heads or tails of what it's saying.
Every "solution" seems to cause another problem that i have to fix. And all i want to do is customize the Message "No Row Returned" from a Report. Please,...does anyone know how to do this?My guess is that it only shows the number of rows it has retrieved. I believe the defailt is for it to only retrieve 50 rows and as you page through your report it retrieves more. So this would just tell you how many rows was retireved, but probably not how many rows the report would contain if you pages to the end. Oracle doesn't really have a notion of total number of rows until the whole result set has been materialized.
-
How to freeze the column edit in Draft document?
Hi,
I try the following code and want to freeze the column edit in Item code, Item description and quantity. However, it just work in Sales Order or PUrchase Order those normal marketing document. it doesn't work in Draft document. Anyone can help?
If BusinessObjectInfo.FormTypeEx = "133" And BusinessObjectInfo.Type = 112 And BusinessObjectInfo.EventType = SAPbouiCOM.BoEventTypes.et_FORM_DATA_LOAD Then
If BusinessObjectInfo.BeforeAction = True Then
oForm = SBO_Application.Forms.Item(BusinessObjectInfo.FormUID)
oboDS = oForm.DataSources.DBDataSources.Item("ODRF")
oGenvalue = oboDS.GetValue("U_InvoiceFlag", 0)
Dim oOrderMat As SAPbouiCOM.Matrix = oForm.Items.Item("38").Specific 'Content Row'
Dim oColumns As SAPbouiCOM.Columns = oOrderMat.Columns
Dim oItemColumn As SAPbouiCOM.Column = oColumns.Item("1") 'Item No
Dim oItemColumn3 As SAPbouiCOM.Column = oColumns.Item("3")
Dim oItemColumn11 As SAPbouiCOM.Column = oColumns.Item("11")
If oGenvalue.Trim = "Y" Then
'Set Itemcode and Quantity to non-editable
oItemColumn3.Editable = False
oItemColumn.Editable = False
oItemColumn11.Editable = False
Else
oItemColumn3.Editable = True
oItemColumn.Editable = True
oItemColumn11.Editable = True
End If
End If
End IfHi Anna,
Thanks for posting your code - that helps a lot isolating the issue!
While your code could work, if the SDK would have been implemented differently, it won't do what you want it to:
- There is no et_FORM_DATA_LOAD event fired when a draft is loaded (use EventLogger from the B1DE tools - it would have told you that you are looking at an event that doesn't get fired...).
- Not sure how "BusinessObjectInfo" is defined, but oForm.BusinessObject.Type = "112" does not occurr:
The business object behind the form is the "real" business object - an Invoice ("13") in your case.
Thus your code never reaches the lines where you disable the relevant columns... - you could e.g. use .NET Profiler form B1TE to get at least a better idea of what is happening inside the add-on, if you don't like to step through you add-on code.
- oForm.BusinessObject.Type is a string (remember UDOs!) - not a number.
- Table "ODRF" is not a datasource behind form "133" - please check the form's XML!
If you would like to run that check you have to do it differently - using DI API...
HTH,
Frank
Edited by: Frank Moebius on Aug 3, 2009 4:28 PM -
How to improve the efficiency of EXCEL export?
I've found a not too small issue of the built-in EXCEL export function. We have a page which let the users query a huge table and return a report page. The query takes long time, however the users are tolerable enough to stand that since they know the size of the table. Nonetheless, the process to export to EXCEL would take almost the same time (maybe a little bit shorter) as the query, which is in-tolerable. It seems that the built-in function just Re-run the query against the table and sends the file to the excel file. Is there any way to solve this issue?
Thanks in advance.
Have a nice weekend!That is a good idea.
You can dump your query output into the collection and base the report region off of that collection. The Excel output just re-runs the region query so if you base the report region on the collection, you are done (you don't need to manually do just the export) -
How to freeze the columns in Classical reports using vertical scroll
Hi All,
I am facing one problem that when i am scrolling down the page in the report output ,the columns in the report are moving upward.I want to freeze those columns . Please give me the solution for to freeze the columns in classical report when i scroll vertically.
With Regards,
R.P.SastryPut ur colum headers in TOP-OF-PAGE Event.
this will sole ur problem.
reward if useful.
Regards,
Vimal -
Add columns to EXCEL exported from ALV
Hi,
I'm using the function module REUSE_ALV_GRID_DISPLAY, to display an ALV report. This report shows a standard text when users click on one column.
I wanna know if its possible to add the standard text as a column into the EXCEL exported from this ALV? and if so, how can I do it?
Regards.
Gregory.Thanks again Raymond,
With internal tables that have a type from ABAP dictionary works fine. My problem is that my internal table is declared into my program's global variables. My code bellow:
DATA: BEGIN OF it_excel OCCURS 0,
department TYPE adcp-department,
bname TYPE usr02-bname,
name_text TYPE adrp-name_text,
agr_name TYPE agr_users-agr_name,
text TYPE agr_texts-text,
from_dat TYPE agr_users-from_dat,
to_dat TYPE agr_users-to_dat,
tcode TYPE agr_tcodes-tcode,
ttext TYPE tstct-ttext,
tdesc TYPE string,
END OF it_excel.
* fills the it_excel table
perform fill_excel_data.
CALL METHOD cl_gui_frontend_services=>file_save_dialog
EXPORTING
window_title = 'File location'
file_filter = cl_gui_frontend_services=>filetype_excel
prompt_on_overwrite = 'X'
CHANGING
filename = v_file
path = v_path
fullpath = v_fpath
user_action = v_useraction
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
CHECK sy-subrc EQ 0 AND v_useraction EQ 0.
CREATE OBJECT v_excel 'EXCEL.APPLICATION'.
SET PROPERTY OF v_excel 'VISIBLE' = 0.
CALL METHOD OF v_excel 'WORKBOOKS' = v_workbooks.
CALL METHOD OF v_workbooks 'ADD'.
SET PROPERTY OF v_excel 'SHEETSINNEWWORKBOOK' = 1.
CALL METHOD OF v_excel 'Worksheets' = v_sheet
EXPORTING #1 = 1.
CALL METHOD OF v_sheet 'Activate'.
CLEAR v_subrc.
CALL METHOD cl_gui_frontend_services=>clipboard_export
IMPORTING
data = it_excel[]
CHANGING
rc = v_subrc
EXCEPTIONS
cntl_error = 1
error_no_gui = 2
not_supported_by_gui = 3
OTHERS = 4.
CHECK v_subrc EQ 0.
GET PROPERTY OF v_excel 'ACTIVESHEET' = v_sheet.
CALL METHOD OF v_sheet 'PASTE' NO FLUSH.
CALL METHOD OF v_sheet 'SAVEAS'
EXPORTING #1 = v_fpath #2 = 1.
When calling cl_gui_frontend_services=>clipboard_export method the variable v_subrc is equal to 0 and sy-subrc is equal to 1 and the EXCEL file is not saved.
Can you please tell me, what am I doing wrong?
Regards,
Gregory
Edited by: Gregory Mayorga on Sep 7, 2010 10:56 AM -
How to extract the data into Excel / PDF from SAP
Hi,
We have spool number of a report output.
We want to extract the data into Excel / PDF from SAP directly...
Plz guide...Hi ,
Please check this [Thread|HOW TO DOWNLOAD SAP OUTPUT TO EXCEL FILE;. Hope your problem will be solved.
You can check [this also.|http://wiki.sdn.sap.com/wiki/display/sandbox/ToConvertSpoolDataintoPDFandExcelFormatandSenditinto+Mail]
Thanks,
Abhijit -
With a SSRS 2008R2 report consisting of a page header and a tablix in the body with columnar information, how can you control which rows are in the Frozen Pane at the top of the workbook when exporting the report to Excel. Currently the top
pane is just the Page Header. I want to include the column headings from the tablix as well.Hi G,
Based on my test, I can reproduce the issue in my local environment. The report only display page header as the fixed data when export it to Excel. Even the tablix header with fixed date repeats on every page when we render the report in Report Designer,
but it cannot display as fixed data in Excel. This is by design.
To work around this issue, we can add the same content in page header, then adjust the space between page header and report body to make them like a whole tablix.
Hope this helps.
Thanks,
Katherine Xiong
Katherine Xiong
TechNet Community Support -
How to get the output in EXCEL form from RIDC.
Hi,
I want the list of all views from UCM in EXCEL form. In RIDC code i am using GET_SCHEMA_VIEWS service to get
all the defined schema views.
But i want this list in EXCEL sheet. How can i do this in RIDC code?
Thanks,
SSJBut i want this list in EXCEL sheet. How can i do this in RIDC code?You can't. RIDC will help you to get data from UCM to Java (in a form of an object in memory). If you want to store this object persistently as a file (e.g. in Excel spreadsheet format) you have to use other Java techniques/libraries like this one: http://www.vogella.com/articles/JavaExcel/article.html or http://jexcelapi.sourceforge.net/
-
How to remove the buttons which are coming from a report?
Hi All,
I need to remove the buttons from an iview which is a sap transaction. when i execute the report program which uses a ldb (PCH) shows a selection screen having all the buttons.
We have created variants for this.Now i want to remove the buttons which are coming from the report program.how to do this ?
Lakshmi.Hi,
I think u r mentioning about the addition buttons that appear in the selection screen when using a logical database. for removing these buttons u can use a function module RS_SET_SELSCREEN_STATUS for setting ur own pf-status
do this in "at selection screen output" of the program..
in the tables parameter, u have the option for giving the ok-codes that u want to remove. append all the ok-codes into this table.
for getting the ok-codes u can use "tab" and go the button.. press F1. it will give the ok-code.
Regards,
Anoop -
How to hide the borders in a Tablix in SSRS report?
Hi All,
I tried to change the border style of the text box to none but the tablix does not allow me to do thisHi,
Select all the Cells in the Data row of Tablix and then click on F4 -> Properties -> Border Style - > None.
sathya - www.allaboutmssql.com ** Mark as answered if my post solved your problem and Vote as helpful if my post was useful **. -
How to freeze the selection column in the table control of the module pool.
hi ,
in my module pool there is a row selection field <b>w/selcolumn</b> of the table control called as mark.
how to freeze the selection column where there is no record in the table control row.
or in other words where wa is initial.
thanks
ektaHi all,
in the PBO of the screen the following code is written.
say the selection column is MARK and is declared in the data as well.
thanks
ekta
*************************C O D E **************************************************
MODULE disp_tabctrl1 OUTPUT.
IF flag_c = 1.
READ TABLE it_create_data INTO wa_material_data
INDEX tab_ctrl1-current_line.
ELSE.
READ TABLE it_material_data INTO wa_material_data
INDEX tab_ctrl1-current_line.
IF sy-subrc = 0.
IF ok_code_0101 = '&SEL1'.
mark = 'X'.
ELSEIF ok_code_0101 = '&DSEL'.
mark = ' '.
ENDIF.
ELSE.
LOOP AT SCREEN.
IF screen-name = 'MARK'.
screen-input = 0.
MODIFY SCREEN.
ENDIF.
ENDLOOP.
ENDIF.
ENDIF.
index_t = tab_ctrl1-top_line.
index_d = tab_ctrl1-top_line + n.
ENDMODULE. " DISP_TABCTRL1 OUTPUT -
How to read the data in excel sheet
Dear sir,
How to read the data in excel sheet when i recieve a data serial communication... ie i have store a data in excel such that
Cell A Cell B
A Apple
B Ball
C Cat
D Doll
when i recieve A from serial communication i have to display Apple, and when i recieve B i have to display Ball and so on..Hi,
I would recommend you to have a look at the VI attached. It makes use of a VI named 'Read from Spreadsheet' to read the row and column data from the tab delimited excel file. The read data is then searched for the Alphabet specified and finally returns you the corresponding string. The test file used to validate the operation of the VI is also attached.
Trust this would help you solve the issue.
Regards,
Sagar G Yadav | Application Engineer | National Instruments
Attachments:
read_from_excel.vi 10 KB
Book1.txt 1 KB -
How to extract the column width in ALv report if its executed in background
I am executing an ALV report in background , in front end i am getting data properly, in back end for some columns some of the digits are missing.For example if PO no is of 10 digits it will display only 8 becos column size is like that , how to extract coulmns in back ground.
I have executed in background and checked the spool and for some of the columns width is not sufficient to display comeplete data so please suggest how to extract the columns sizes if executed inj background for an ALVHi Deepthi,
you can try with the above mentioned suggestions ,if its worked its fine ,
If not use Docking container instead of custom container, For ALV in back ground jobs, its suggest to use docking container instead of custom container , below you can find the declaration for docking container and code to use docking and custom container in your program for fore and back ground.
or you can use docking container alone for both operations.
Data : G_DOCK1 TYPE REF TO CL_GUI_DOCKING_CONTAINER,
IF CCON IS INITIAL. (ccon is container name )
*Check whether the program is run in batch or foreground
IF CL_GUI_ALV_GRID=>OFFLINE( ) IS INITIAL.
*Run in foreground
CREATE OBJECT CCON
EXPORTING
CONTAINER_NAME = 'CON1'.
CREATE OBJECT GRID1
EXPORTING
I_PARENT = parent_1.
ELSE.
*Run in background
CREATE OBJECT GRID1
EXPORTING
I_PARENT = G_DOCK1.
ENDIF.
ENDIF.
B&R,
Saravana.S
Maybe you are looking for
-
I have a normal report , i need to make it into ALV,
Hi, i have a normal report and i need to make it into ALV Report in ECC5.0version. when i making it into ALV its giving blank. can any one help me out to make below code in to ALV report. REPORT ZSAMPLE line-size 260 line-count 65
-
Hello All, Can anyone please offer any suggestions/pitfalls/documentation, etc with regards to the following: We have upgraded our APO3 system to SCM5 1 year ago We had been using R3 system 4.6b, and everything was working fine. Now we are going to u
-
Full screen incoming caller display 2730 classic
Is there a way of making the phone display the incoming caller display larger, when your driving and using Bluetooth its almost imposable to read the number or name of caller I know the font size can be changed for other applications but this one is
-
SD Ship to Partner and Bill to Partner relation
SD Experts, I am looking for a report that gives a list of all ship to's information but that would also give what sold to bill to they are assigned to. I tried table KNA1 I get all ship to info except who they are assigned to. Anyone knows of any SA
-
Problem with premiere pro cs6 trial
i have it all downloaded but when i go to launch an application from the adobe folder it asks me to sign in. then it tells me there is no internet connection....but i do have internet connection. someone please help. i have lots of college work to d