Ag-Grid : Copy and paste from Excel (windows OS) - ag-grid

In Windows Operating system while copying Excel or LibreOffice cells of a single row into ag-agrid cells, causes the first ag-grid cell below current row to be overwritten.
It works fine in Mac and Linux boxes.
I did test it in my application and in Ag-grid Demo as well. Both face the same bug.
In order to reproduce it, we select just one cell in ag-grid.
If I select 10 cells from excel and 10 cells into ag-agrid then it works fine.
In third image you can see that value of 100 has been lost.
BEFORE PASTE
enter image description here
DATA COPIED FROM EXCEL
enter image description here
AG-GRID AFTER PASTE
enter image description here

Use the grid property suppressLastEmptyLineOnPaste, as described in the documentation
Set to true to work around a bug with Excel (Windows) that adds an
extra empty line at the end of ranges copied to the clipboard.
Default: false
Link to the documenattion:
https://www.ag-grid.com/react-data-grid/grid-properties/#reference-clipboard

Related

LibreOffice Calc: Formula does not recalculate

I created a new spreadsheet with LibreOffice 6.4 and noticed that formulas do not execute (and recalculate). So, when I write =1+1 or =A1+A2 (with values in those cells), nothing happens. Likewise, when I copy and paste formulas from older spreadsheets, nothing happens either.
I have found some advice in various forums that point to Tools->Options and LibreOffice->Preferences (since I have a Mac). One source tells me that auto-recalculation is disabled for reasons of backward compatibility with Excel (what I do not understand as I just created a new file).
I have enabled 'Always recalculate' for both options in LibreOffice->Preferences (Option LibreCalc->Formula):
Nothing in the 'Calculate' Option tab seems to indicate anything in this direction.
This seems not to change anything. What am I missing?
How can I make sure that everything always recalculates and always executes all my formulas?
Thanks!
Try this:
Select your range ; hit CTRL+H ; Found = ^. ; Replace = & ; check "regular expressions" box below ; "replace all" button;
It works better if you create a new empty spreadsheet and then paste your data.
What worked today under Windows only: Re-create the formula in a new column. After it works correctly, Copy or Move the new cell into the old position, overwriting everything in the cell that was not calculating.

Insert a table in an unalterable format into a Word 2010 file while retaining font size and sharpness

I am trying to insert a table in an unalterable format into a Word 2010 file while retaining font size and sharpness.
So far, I have tried preparing the table as a pdf, then using Insert -> Object -> Adobe Acrobat File to get it into Word. Unfortunately, this inserts the table within margins automatically created on the Word page, and distorts lines and font size within the table.
Here are some things I've tried:
- Setting the margins of the page in the recipient Word file to 0" before importing the pdf.
- Printing the pdf on on a smaller page (7" x 9") then importing onto a page 8.5" x 11".
Neither worked; the imported pages were resized and the table printed badly.
The pdf I used was prepared from Word using PrimoPDF.
Please feel free to suggest formats other than pdf for the transfer if they can be more easily incorporated into the final Word document.
Your help will be appreciated.
First, prepare the table as a Word document. Go to the Review tab, and select Restrict Editing. Set Editing Restrictions to allow No changes (Read only). Press Yes, Start Enforcing Protection. Save file.
Next prepare the recipient document in Word. Go to the Insert tab, select Object, Create from File, and browse to find and insert the file.
The table will be inserted into the recipient Word file as a document within a document, and its 'Read Only' protection is maintained. All fonts and line styles remain as originally set.

Dynamically updating text in Matlab GUI

I think it should be pretty simple what I want to do, basically I have one edit box that displays a value in percentages and another that I want to update to display raw values. I've tried using the following code under the edit1 (percent) callback:
currentKey = str2num(get(gcf,'CurrentKey'));
percent = str2num(get(handles.edit1,'String'));
if ~isnan(currentKey) && ~isnan(percent) && 0<=percent && percent<=100
set(handles.edit2,'String',num2str(2*percent))
end
But it will only update the second edit box if I first click outside of the first one. Anyone have an idea of what I should be doing?
Thanks!
I think this link should help you:
How can I make the text that I enter into an edit text box update dynamically?
Solution:
This enhancement has been incorporated in Release 2011a (R2011a). For previous product releases, read below for any possible workarounds:
This is expected behavior of the Edit Box UICONTROL in MATLAB.
You can try using the 'keypressfcn' to grab the keyboard input. The attached two files demonstrate the ability of real-time text update. As you enter text into the upper edit box, the text will be copied to the edit box beneath it as you enter.
Please download the following two files:
test_keypressfcn.m
test_keypressfcn.fig
Execute the program.
A GUI will appear. Enter text in the upper edit box displayed in the GUI.
Observe the text in the lower editbox is updated dynamically or in real-time as you enter test in the upper edit box.
Please note that this will work only for text that is continuously entered in the editbox. If you type in between words already entered in the editbox the gui will not perform as expected. You will need to implement logic similar to the one in this example to get the behavior that you desire.

SSRS Export to Excel Hide/Unhide Issue

I have an SSRS 2008 report where in I have to hide some columns & export to excel and after exporting to excel, the requirement says that the columns should be unhidden in the excel. Please suggest a way to do this as I heard this can't be dont at all.
Thanks in advance!!
It can be done, but I believe only when deployed to a SSRS 2008 R2 Server. That is how I am using it now. The way you do it is you use a conditional "Hidden" property on the columns that is set to the following:
EDIT: switched the true false around so that it is not hidden in Excel
=IIF(Globals!RenderFormat.Name = "EXCEL",false,true)
That will effectively hide the column unless it is outputting in Excel.
You access the columns if you are using VS2008 by selecting advanced mode on the top right drop down of the group explorer near the bottom of the interface. The columns will list top to bottom representing left to right representation of the columns. Set the "Hidden" property with one of those selected.
It is possible! :)
You just have to select the columns that you want to hide in excel, go to the properties panel (you can press F4) and at the bottom, inside visibility, write this expression in the Hidden option:
=IIF(Globals!RenderFormat.Name = "EXCELOPENXML",true,false)
Even if Visual Studio underlines the 'name' attribute in red, it works fine!
You can hide everything that you want in Excel, but it has to be rendered first in the RPL. Actually, when you hide it, it just appears like a white column.
If Excel 2012 is used , then please try this instead
=IIF(Globals!RenderFormat.Name = "EXCELOPENXML",true,false)
The formula below worked fine for this scenario - I want page breaks in report viewer, but while exporting I need all the rows data in single excel sheet.
=IIF(Globals!RenderFormat.Name = "EXCELOPENXML" OR Globals!RenderFormat.Name = "EXCEL", false, true)
No it can't.
Columns (or any data region) in SSRS that is not visible isn't rendered. It can't show in Excel because it isn't there.
From a user perspective, if I export I'd expect to get what I see on screen.
You could have a URLAccess based report that
points back the same report
has a hidden parameter RenderAllForExcel (..&RenderAllForExcel=true)
renders direct to Excel (...&rs:Format=Excel&rs:Command=Render)

Crystal Reports text cuts off last line in Details section

I have a Crystal Report 11 file that is a letter. The first Details section contains a large text box that has print date, address block, and the salutation line. Every once in a while, the last line of the text box gets cut off so that the salutation isn't seen. It's very inconsistent in that sometimes, I run the report for one person in my system and the text is cut off, but if I run the report a few hours later for the same person, without having changed the values of the address or name in my database, then the letter looks fine.
I increased the text box height and the Details section height, but the problem still occurs intermittently. Has this happened to anyone else, or does anyone have an idea what could be causing this?
Normally this should be working if you check the "Can Grow" option in the common tab of the "Format Field/Text" settings. With that option checked it shouldn't matter which height you set.
This is difficult problem that you have to attack from 3 different fronts:
Software Hot Fix
Default Printer
Form Authoring
Software Hot Fix: You'll need to download the CRRuntime that includes Hot Fix 20. This Hot Fix addresses truncation problems when making a PDF. You can find it at http://downloads.businessobjects.com/akdlm/crnetruntime/clickonce/CRRuntime_64bit_13_0_20.msi
Default Printer: The printer you use when authoring a report must match a printer when you are rendering a report. On our servers, there are no printers installed except the Microsoft XPS Document Writer. Be sure to select that as your default printer when writing the report.
Form Authoring: When you add a database field to your report, don't drag it from the field explorer onto the design surface. First insert a text object onto the design surface. When you've positioned and sized it, then drag the database field onto the Text Object. For whatever reason, the database field will wrap better when it is enclosed by a text object.