Fixed column width in Excel output
Hi,
Can we fix a column width when we are viewing the report output in excel? Can we do that in RTF template?
If the column name is too long, it is automatically inreasing width of the column...But I need the column to be of a fixed width.
You should try Excel templates instead of RTF templates. This is the best method to control Excel output formatting like column width.did you try excel template ?
for example for 3 nested group?
from Re: Can XDODTEXE produce BI Publisher output?
i tested true excel template on ebs r12.1.2 and it works only for one group and for two group the result awful it duplicate and mix data
IMHO true excel template very limited yet
Similar Messages
-
Fixed column length in excel sheet thru abap program
HI Experts ,
I am sending 2 excel attachments from abap program to external email Id's .
Excel attachments are successfully sending but the columns in the excel attachmet are compressed .
I want to fix some width for excel columns .
Please provide your help and suggest .
Thanks,
NusratHi All ,
Thanks for the reply ,..
I am using below function module to send a mail with excel attachment , I would like to use the same code instead of OLE .. Could you please let me know how to modify the column lenght using this module .
CALL FUNCTION 'SO_DOCUMENT_SEND_API1'
EXPORTING
document_data = gd_doc_data
put_in_outbox = 'X'
sender_address = 'Traking System'
sender_address_type = 'INT'
commit_work = 'X'
IMPORTING
sent_to_all = gd_sent_all
TABLES
packing_list = it_packing_list
contents_bin = it_attachment
contents_txt = it_message
receivers = it_receivers
EXCEPTIONS
too_many_receivers = 1
document_not_sent = 2
document_type_not_exist = 3
operation_no_authorization = 4
parameter_error = 5
x_error = 6
enqueue_error = 7
OTHERS = 8.
Thanks ,
Nusrat -
Is it possible to have a fixed column width and a URL link?
I am trying to achieve having a popup link on a column within a SQL report but also have the report column a certain width. I can have either or however not at the same time.
What I did was created a SQL report, edited a column and gave it a URL redirect (page in application) as normal.
For the fixed column width, I used:
<div style="width:250px; height:54px; overflow:hidden" title="#Comments#">#Comments#</div>On Column Formatting / HTML Expression
And for the popup URL, I used:
onclick="window.open(this.href,'_blank','resizable=0,scrollbars=0,width=650,height=300,menubar=0,location=0');return false;" title="Comments"On the Column Link / Link AttributesAndy thank you for your reply, however I either am not completly understanding or there is a problem elsewhere.
I have changed to the code to fit the needs of the application as so:
!http://i41.tinypic.com/2m6mrh4.jpg!
App ID: 523
Page: 23
Item: P23_STATUS_COMMENT
Column to select: Comments
Whenever clicking on the link, the following error is given:
Expecting p_company or wwv_flow_company cookie to contain security group id of application owner.
Error ERR-7620 Could not determine workspace for application ().{code} -
PDF Export with fixed column widths ignores page break on Analysis item
Hi experts,
we use the column width modification to define fixed column width in a analysis item. On the same Web template we want to export the whole template including the analysis item to PDF format. First of all everything worked properly, but the fixed widths have not been applied to the PDF. According to [SAP Support Note 1336188|https://service.sap.com/sap/support/notes/1336188] and additional explainations from [SDN Thread 1558536|Column Width Modification not working in Print Version; we solved the problem.
Unfortunately another problem arises. Our Analysis item delivers a big number of rows which extent multiple pages. By applying the export fix width parameter all page breaks are ignored, meaning that the analysis item is never shown completely in the PDF. We tried all parameter options of the Export Function without success. It seems that the EXPORT_FIX_WIDTH is just working for analysis items, which fit on one single page by length.
Any ideas how to solve this?
FYI, our XHTML code (Version SAP BW 7.0 SP 19):
<bi:ANALYSIS_ITEM name="ANALYSIS_ITEM_1">
<bi:DATA_PROVIDER_REF value="DP_1" />
<bi:MODIFICATION type="CHOICE" value="MOD_SINGLE_MODULE" >
<bi:MOD_SINGLE_MODULE type="COMPOSITE" index="1" >
<bi:ACTIVE value="X" />
<bi:MOD_SELECT type="CHOICE" value="MOD_GENERIC_MODULE" >
<bi:MOD_GENERIC_MODULE type="COMPOSITE" >
<bi:MOD_REFERENCE value="com.sap.ip.bi.rig.ColumnWidth" />
<bi:MOD_PARAMETER_LIST type="ORDEREDLIST" >
<bi:MOD_PARAMETER type="COMPOSITE" index="1" >
<bi:MOD_PARAM_NAME value="COLUMN_DEFAULT" />
<bi:MOD_PARAM_VALUE type="CHOICE" value="INTEGER" >
<bi:INTEGER value="50" />
</bi:MOD_PARAM_VALUE>
</bi:MOD_PARAMETER>
<bi:MOD_PARAMETER type="COMPOSITE" index="2" >
<bi:MOD_PARAM_NAME value="EXPORT_FIX_WIDTH" />
<bi:MOD_PARAM_VALUE type="CHOICE" value="BOOLEAN" >
<bi:BOOLEAN value="X" />
</bi:MOD_PARAM_VALUE>
</bi:MOD_PARAMETER>
</bi:MOD_PARAMETER_LIST>
</bi:MOD_GENERIC_MODULE>
</bi:MOD_SELECT>
</bi:MOD_SINGLE_MODULE>
</bi:MODIFICATION>
</bi:ANALYSIS_ITEM>
Any help and comments will be appreciated. Thank you!
Best regards,
SebastianThank you!
Unfortunately I didn't find any work around.
Thanks,
Federico -
RH 10 issue with Fixed Column width
Hi,
Is anybody else having issues with setting a fix width for a column in a table? In RH v.10 the "fixed widths" are not staying "fixed" as I have them manually set.
I've recently been upgraded from Robohelp (html) v.8 to v.10.
In a "Design" view in v.8.0 when I set a column width from the right click menu (AutoFit > Fixed Column Width), the width of the column would be whatever width I'd set it to. Now, in v.10, the width is whatever width the Robohelp window is set to! For example, I have a large monitor and I've got Robohelp open in Full Screen mode, the table (a 1-cell table) gets set to the width of the window rather than the particular width I want to use! I want the cell to be a particular width (much less than my monitor or the open window's width). Can someone please tell me what I am doing wrong?
OS=Windows7.
Browser=IE9
Robohelp is installed locally (it is not being run over a network).
Thanks!
P.S. So far this is the only issue I've had after upgrading from RH v.8 to RH v.10.Hi William,
In a "Design" view in v.10, the table (which is 1 cell) looks like a big rectangular box. I've turned off the border (cell or table border), so the border appears in gray.
Put mouse focus on this 1-cell table, then grab an edge with the mouse.
Move the table inward to make the column narrower in the view.
Then from the right click menu, choose AutoFit > Fixed Column Width.
Voilá - the width is back to the width of the display window.
Did that make sense to you? Thank you for your help and ideas.
Cheers,
Julia -
Table Autofit - Fixed Column Width not actually fixed when resize viewing window
Using RoboHelp x8.0.2.208
Generating HTML help (CHM)
Set the Autofit property for a table as Fixed Column Width
Generate the CHM file
The table starts as the size specified
If I resize the width of the HTML help viewer, the column width shrinks
I tested generating this project as WebHelp with the same results
I also went into the Table Properties and specified a Preferred Width for the overall table and for each column.
I thought this option would set the size of the table based on how I sized it in source and would not resize the table as the viewing window is resized (either the HTML help viewer for CHM or the web browser window for WebHelp).
It appears the actual behavior is to start at the size specified and resize columns as the viewing window is resized.
Can someone tell me if I am not setting something correctly?
As always, thanks for any assistance/direction.
Michael F WeartThe "Autofit" option apparently only applies to the Window size you have specified.
Once you reduce the window size, the HTML table protocol takes over:
WARNING, WARNING, WARNING!
I need "this much" space for the widest element in column 1, and I don't care what your settings are.
Next, I need "this much" space for the widest element in column 2, and I don't care what your settings are.
Next, I need "this much" space for the widest element in column 3, and I don't care what your settings are.
Next, I need "this much" space for the widest element in column 4, and I don't care what your settings are.
etc.
etc.
By "widest element," I mean either an image or the longest text string with no separating spaces (ex: SYSTEM_DIAGNOSTICS_PARAMETER_EXTERNAL_ISSUER).
If you absolutely have to maintain the table the way you want, you might try creating it in a scrap topic, taking a screenshot, and saving that as a GIF file.
Good luck,
Leon -
Sap r/3 rel 4.6c - F-03 Process open Items Column Width standard tab output
Hello All:
I use SAP R/3 Release 4.6C. I am learning how to use the F-03 Clear G/L Account function. On the front page of F-03 you enter the account number and then click process open items.
The output comes on the screen in the "standard" tab. In this tab you may start to clear your items.
My question: How do you change the width of these columns? I know you can change the column width by moving the column margin with the mouse. I want to know how to change the column width permanently - make the column a "fixed" width that will not change unless I change it.
Do you know which variant I need?
thx
Tracy Lofstedt
Western States Equipment CoHi Tracy,
You've posted your question on one of the SAP Business One forums which is not related to R/3. I recommend you repost on one of the R/3 related forums, a list of which can be found here:
https://www.sdn.sap.com/irj/sdn/forums
Kind Regards,
Owen -
Hi Folks,
I have a grid in which I want to prevent the user to move the set column widths, because this grid has a separate graphik on top of it which would then cease to correspond with the grid columns.
My question: is there any means of difining a grid with <u><b>non-resizeble columns</b>?</u>
Thanks & Regards
Fouad
Message was edited by: Fouad SebbaneHi
In the below structure ,set bold field as 'X' for columns u wish to keep fixed.
Fieldcat
types: begin of slis_fieldcat_main0,
row_pos like sy-curow, " output in row
col_pos like sy-cucol, " position of col
fieldname type slis_fieldname,
tabname type slis_tabname,
currency(5) type c,
cfieldname type slis_fieldname, " currency
ctabname type slis_tabname, " and table
ifieldname type slis_fieldname, " initialcol
quantity(3) type c,
qfieldname type slis_fieldname, " qty
qtabname type slis_tabname, " and table
round type i," round in write statement
exponent(3) type c, " exponent for floats
key(1) type c, " column with key-color
icon(1) type c, " as icon
symbol(1) type c, " as symbol
checkbox(1) type c, " as checkbox
just(1) type c, " (R)ight (L)eft (C)ent.
lzero(1) type c, " leading zero
no_sign(1) type c, " write no-sign
no_zero(1) type c, " write no-zero
no_convext(1) type c,
edit_mask type slis_edit_mask,
emphasize(4) type c, " emphasize
<b>fix_column</b>(1) type c, " Spalte fixieren
do_sum(1) type c, " sum up
no_out(1) type c, " (O)blig.(X)no out
tech(1) type c, " technical field
outputlen like dd03p-outputlen,
offset type dd03p-outputlen, "offset
seltext_l like dd03p-scrtext_l, " long key
seltext_m like dd03p-scrtext_m, " middle
seltext_s like dd03p-scrtext_s, " short
ddictxt(1) type c, " (S)hort (M)
rollname like dd03p-rollname,
datatype like dd03p-datatype,
inttype like dd03p-inttype,
intlen like dd03p-intlen,
lowercase like dd03p-lowercase,
end of slis_fieldcat_main0.
Regards,
Raj -
Missing column data in Excel output
I have a report where one object is not displaying when output to excel. When refreshing the report in Webi or Deski, the results show, but when it is exported to excel, that particular column is missing data...the column header still shows though. I have tried adding the formula =Trim([Object]) which worked once but is not working in this instance. Any ideas on what may be causing this and potential fixes?
Hi,
There are no merged columns. I made sure the table is flush to the top of the report. Also the column header is visible. See below. I highlighted the Summary column in webi to show the formula that had worked previously to alleviate this issue, but as you can see in the excel output, it is not working. Also, I made sure the formatting of that column is the same as the other columns. -
Crosstab column width in HTML output
Hi,
I have problem with column width in a crosstab report with html ouput.
I can not find a way to control the column width, and the more I try to control this either with word table properties or with xsl attribute, the more messy it gets!
Now the columns gets superwide and I dont have clue how to control this...
Ant ideas of how to set the column width in the rtf template fot html output?
It looks fine with pdf output...
Br
MagnusThanks for your tip, but I did not do the trick exactly.
Can you get help for this in the User guide? I have read it thru without anything...
Anyway, I couldnt get it right with the Autofit to Window either, I need to set this for specific columns only, but when I do it on the first columns MS Word rearrange the whole table...
Do you use it on certain columns or the whole table?
I have to say, I have a quite complex template with several tables within other tables, and this maight mess things up...
BR
Magnus -
Prob with fixed column widths and word wrapping in viewer
i have a report where each record has a very long paragraph of text in it.
In desktop and plus, the text column is at a fixed width and the text just wraps nicely according to the column width.
But in Viewer, the column widths do not stay fixed, the text does not wrap, and the long text is displayed in a single line that completely stretches the column width off the page and requires a horizontal scroll bar.
is there anyway to fix the column width in viewer, have the text naturally wrap, and prevent the column stretching. All word wrapping settings are on, but seem to have no effect. I can't seem to find any solution to this.
Thanks...Hi Pritam,
Per my understanding that you can't see the vertical scrollbar of the ReportViewer controls 2012 to scroll for the grid rows, but can see the vertical scrollbar of the web application, you also can't fix the headers while scrolling, right?
I have tested on my local environment and can't reproduce your issue, but you have an alternative way to add some css to the web form's source code to display the vertical scrollbar.
Details information below for your reference:
Please check below properties setting of the reportviewer which control the visibility of the scrollbar:
AsyncRendering="true"
SizeToReportContent="false"
Please check if this problem also occur on other version of IE and other type of browser.
Please check if you have done correct setting of the Fix data to freeze the table header as the step of below:
http://technet.microsoft.com/en-us/library/bb934257(v=sql.100).aspx
If step1 doesn't work, please click the source of webform.aspx and add below CSS to add the vertical scrollbar manually:
#ReportViewer1 {
overflow-y: scroll;
Run the application you will see it display as below:
Similar thread for your reference:
https://social.msdn.microsoft.com/forums/sqlserver/en-US/f96b3b56-e920-411b-82ea-40467c922e66/reportviewer-control-vertical-scroll-bars
If you still have any problem, please feel free to ask.
Regards
Vicky Liu -
Hello Experts,
We have 'Assignment' column in the clearing screen. We want to have this column fixed. The problem is that by default it displays 7 to 8 characters. If we have more than 8 characters, we have to manually expand the column. Is there a way to fix the column width to 17 characters?Dear Narayan
Hello Experts,
We have 'Assignment' column in the clearing screen. We want to have this column fixed. The problem is that by default it displays 7 to 8 characters. If we have more than 8 characters, we have to manually expand the column. Is there a way to fix the column width to 17 characters?
Go To F-32
Choose From Menu
Setting --> Change line Layout
Double click the layout that appears
Double click the Assignment Field
Change the display length to 17 as per your requirement
and save
Hope it Solves your query
Cheers
IMK -
Hi,
Anyone of you please update the script for the below requirement.
var doc = app.activeDocument,
w = doc.documentPreferences.pageWidth;
sel = doc.selection[0];
if(sel instanceof Table)
var col = sel.columns;
_left = sel.parent.parentPage.marginPreferences.left;
_right = sel.parent.parentPage.marginPreferences.right, allcolwidth = 0;
for(var i=1;i<col.length;i++)
var cell = col[i].cells, cont = "";
for(var j=0;j<cell.length;j++)
cont += cell[j].contents;
if(cont == "")
col[i].width = "1p";
allcolwidth += col[i].width;
else if(cont.indexOf("$") !=-1)
col[i].width = "1p";
allcolwidth += col[i].width;
else if(cont.indexOf("*") !=-1)
col[i].width = "1p";
allcolwidth += col[i].width;
else if(cont.indexOf("%") !=-1)
col[i].width = "1p";
allcolwidth += col[i].width;
else if(cont.indexOf(")") !=-1)
col[i].width = "1p";
allcolwidth += col[i].width;
else
col[i].width = "5p";
allcolwidth += col[i].width;
for(var k=0;k<col[i].cells.length;k++)
if(col[i].cells[k].contents !="")
var paras = col[i].cells[k].paragraphs;
for(var l=0;l<paras.length;l++)
paras[l].justification = Justification.RIGHT_ALIGN;
col[0].width = w - _left - _right - allcolwidth;
else
alert("Select a table...")
All tables in a document:
1) All $, %, ), columns should be fixed width “1p”
2) All empty column should be “1p”
3) All superscript content column like [1, (1), *] should be “1p”
4) Remaining all columns (except first column) should be “6p” width and values are right aligned
5) First column always variable width
6) All underlines values should be 0.5 bottom border, border only need ‘$’ column and ‘value’ column (not in ‘)’ ‘%’ 1, (1), *) columns.
7) Also table should be fit within text area (100%)
The below script is working fine but it missed the requirements for (point no 3 and 6).
Sometimes empty columns are not converted into "1p" because of spanning (see the below table), Can you please ignore the spanned columns while running the script or put any input dialogue box for "number of rows to ignore".Please do not post drive-by follow-ups to random ancient threads. The Column Width property referred to was introduced in APEX 4.0 in June 2010, 2 months after this thread originated. Whilst the new information might be useful for someone using APEX 4.0 who finds this thread in a search, this question occurs in hundreds of other threads: are you going to update all of them?
And the Column Width property is in the Column Definition section of the column attributes... -
Hi,
I have a BPS layout with a largest value in a cell of one column. The amount is represented by ######### because the column is not open to show the value.
The formatting options "Controlling column width" is selected, if I deselect this option is worst.
The user cant fit the column width; the column is not protected.
The largest amount is generated by an excel formula.
What can I do?
Thanks
VictoriaOr <u>after</u> the Layout component in the web interface builder assign a text/html-component with html=true and following script, where you can hardcode the column width
<script language="JavaScript" type="text/javascript">
<!--
var layout_id = "<b>LayoutXXX</b>";
layout_sheet = getBpsExcel( layout_id );
if (layout_sheet && layout_sheet.ActiveSheet) {
// OPEN Excel OWC FOR CHANGE
layout_sheet.ActiveSheet.Protection.Enabled = false;
// SET RANGE (ROW,COL) TO (ROW,COL)
// CHANGE PARAMETERS
range = layout_sheet.Range(layout_sheet.Cells(1 ,1 ),
layout_sheet.Cells(100 ,100 ));
<b>range.Columns.ColumnWidth = 10</b>;
//PROTECT THE SHEET AGAIN
layout_sheet.ActiveSheet.Protection.Enabled = true;
-->
</script> -
How to set and fix column widths in Mavericks?
Until recently I was using a Mid 2011 MBA with OS X 10.8.X.
I don't know what I did but the column widths in the Finder started to self-adjust to the longest filename.
Now I have migrated my user account from this MBA to a new MBP running OS X 10.9.1.
But the Finder in this account still has the same affliction, I can adjust column widths to where I want them but as soon as I click on a file or folder, the column widths readjust to the length of the longest file/folder name.
How can I stop the Finder from doing that automatically?
Thanks for your help and Happy Holidays!Dear William Lloyd:
I actually learnt how to do this from another post in this community just a few hours ago.
You adjust column wisth in Finder by placing your curser at the column edge and while holding Option key down, move column edge to the width you desire.
This will make a "sticky" change i.e., column widths will stay where you set until you chanage them.
I would like to to attribute this to the poster I learnt from but I am not able to find that post again.
Cheers.
rdfNaresh
Maybe you are looking for
-
Re: Could not complete your request because of a program error
Running: OS 10.5.8, CS4. This error is becoming very frequent. When I get it, I am unable to continue to work in Photoshop. I have to dump the .plist, and restart my whole computer. Are there other preferences I should dump? I thought of re-installin
-
I keep trying to open my iTunes. Every time i try and open the program I get an alert message. It says the following: 'The file "iTunes Library" cannot be read because it was created by a newer version of iTunes.' It won't do anything after it says t
-
Do newer MBPs have PMUs?
I have a 2010 17" MBP and my wife has a 2010 13" MBP. Both are having the same charging problem where the adapter is plugged in, the light on the MagSafe plug is orange but the computer is not charging. By fiddlying with the end you can usually get
-
Custom Adobe Photoshop Elements 8.0 deployment error
I am working on developing a custom MSI to deploy Photoshop Elements 8.0 in our company and I am getting the following error message: Install adobe photoshop elements 8.0 using the setup.exe in the root folder I was hoping someone could assist me wit
-
Replacement for FormCalc Date2Num Date Field Calculations in Mobile Forms?
I have a number of forms that use the FormCalc Date2Num function. According to the Adobe documentation this function is not supported in mobile forms. If I were doing pure html5 forms I would use a JavaScript library to use a similar function. What's