Expand a Excel-File
Hello everybody,
I want to expand an Excel-File. I want to open it and write data in a new line line.
I want to do some measurements and write the gotten data to the Excel-file.
Every measur-data should get its own line. Is that possible. I didn´t find any example in the example finder.
Could somebody help me please dealing this.
With kind regards
Daniel
If you are using the Report Generation Toolkit go to http://zone.ni.com/devzone/cda/tut/p/id/3178 . This is a pretty good tutorial on how to use it. You might be particularly interested in the design 4 Excel Insert Cells function.
Using LabVIEW 2010SP1 and TestStand 4.5
Similar Messages
-
How do I merge multiple Excel files with more than one tab in each file using PowerQuery?
Hello
I have 12 Excel (.xlsx) files and each file has three identically named and ordered tabs in them.
I know how to merge multiple Excel files in a folder using M (those guides are all over the web) but how do I merge multiple Excel files with multiple (yet identically named and ordered) tabs? Surely it is possible? I just don't know how to do it in M.
Cheers
JamesWhat Laurence says is correct, and probably the best thing to do when the sheets have differing structures. Here is an alternate approach that works well when the sheets all have the same structure.
When you first open the Excel file from Power Query, you can see its structure in the navigator at the right-hand-side of the screen. If you select the root (which is the filename itself) and click Edit, you'll see all the tabs in the sheet as a single table.
You can now do filtering based on the Name, Item and Kind values. When you've reduced the set of things down to the sheets you want, select the Data column and say "Remove Other Columns". If the sheets don't have any header rows, you can just click the expand
icon in the header and you'll be done.
Otherwise, if the sheets have headers or if some other kind of sheet-level transformation is required against each sheet before doing a merge, you'll have to write some M code manually. In the following example, each sheet has a header row consisting of
two columns: Foo and Bar. So the only step I need to perform before merging is to promote the first row into a header. This is done via the Table.TransformColumns operation.
let
Source = Excel.Workbook(File.Contents("C:\Users\CurtH\Desktop\Test1.xlsx")),
RemovedOtherColumns = Table.SelectColumns(Source,{"Data"}),
PromotedHeaders = Table.TransformColumns(RemovedOtherColumns,{{"Data", each Table.PromoteHeaders(_)}}),
ExpandData = Table.ExpandTableColumn(PromotedHeaders, "Data", {"Foo", "Bar"}, {"Data.Foo", "Data.Bar"})
in
ExpandData -
Problem while downloading the alv output to excel file.
Hii,
While downloading the alv output to an excel file i am facing a problem. Either the output comes as 1.23456E+11 or the values get cut .
Cant put in txt file as the users require to calculate directy and i have even tried to increase the output length .But both doesnt help.
So what are the other ways to do so.
Edited by: mansi_v27 on Mar 24, 2010 12:35 PMHi,
Welcome to SCN!!!.
Please go through the forum rules. This has been discussed many times. You can search in the forum for this.
Infact there is no problem. Just expand that excel cell. You can see the full value. This is standard excel property.
Thanks,
Vinod. -
After the Mac transfer from my old laptop to the mac, where do I find my copied excel files
I just had a Mac transfer done from my old laptop to my new Macbook Pro and I don't know where to find my old excel files?
What was your old laptop? Where did you keep the files on it? Please expand on the information that you have not given.
-
Cells in Excel file output formatted to exponential format
Hi ABAPers,
I have generated an excel file using the FM, ' SO_NEW_DOCUMENT_ATT_SEND_API1 ' and cells in certain column are diplayed in the exponential format in excel. I had converted all the data to be populated into character type.
As you may see, the Invoice Number ( vbeln CHAR 10 ) and the EAN Code ( ean11 CHAR 18 ) are in exponential format.
But, as I expanded the cells, Invoice Number was displayed correctly but not EAN Code.
Invoice Number - 5090002040
EAN Code - 4011100191006
Is it because EAN Code is only 13 Characters long when it was supposed to be 18?
Please suggest any alternate logic for the EAN Code.
Thanks.
Arun G NairHello Alex,
No spaces or apostrophes or inverted commas are to be added to the EAN Code ( 4011100191006 ).
I have tried fetching the value and storing it into a string and then assigning that string to ean code variable but didn't work out. At the moment it is being stored in a variable of character datatype.
As you may see, it works fine for Invoice Number, then why is it NOT working for EAN Code. They have the same character datatypes and are also asigned to variables of similar datatypes. -
How to forbidden to save report in Excel files
Hi,
I use Edge BO 3.0.
In WEB Intelligence report, is it possible to forbiden to users to save data in an excel file ?
I created an acces level and I denied for Webi report the rules :
Export the report data
save as Excel files
save as CSV files
I just allow users to save as PDF files.
I created a group and give this acces level to this group for Web Intelligence application.
But my users can allways save data in Excel files...
What's wrong ?
Thank you
Michel (from FRANCE)Hi,
Following solution might help you to resolve the issue.
In BusinessObjects Enterprise XI, users can save Web Intelligence reports as portable document format (PDF), Excel, comma-separated value (CSV), and other formats to their local computer. It is necessary to restrict this right for a group of users by disabling the Save As option.
Resolution
Here are the steps:
Log on to the Central Management Console as administrator.
Click Folder > folder containing report > Rights tab > Add/Remove.
Add the appropriate group. Click OK. The User Folders window appears.
Click Advanced in the Net Access Column.
Clear the <group name> will inherit rights from its parent groups option.
Clear the <folder name> will inherit rights from its parent folders option.
Expand the Web Intelligence Document section.
Click the Explicitly Denied option for the right to Export the report"s data.
Click Apply > OK.
When the Web Intelligence report is opened, the users will no longer see the Save As option. -
When I export my Crystal report to excel file (97-2000)
it does not show the Boxes and lines in excel file.
I am using CR 11 and MS Office 2003
please guide me how to solve this problem
Edited by: mian ghous on Feb 10, 2009 1:59 PMBut, DUDE, it IS possible using borders! Each of the border options has a formula field that you can code to tell Crystal in effect "on this line of the report, I want xxx borders".
Let's start with the easiest example: Say you want the line to go around the column heading (full box). then lines down each side of the column until the end, then for the the subtotal you want lines on three sides (all but top). Set all four borders for the heading field to Single, set the right and left borders for the data field to Single, and set all but the top border for the subtotal field to Single.
To expand this, let's say there is no subtotal, and you want the last value in the field to have a bottom border. Set the header and data field borders as above, except for the bottom border of the data field, use the following formula (basic syntax):
if {field} = NextValue({field}) then
formula = crNoLine
else
formula = crSingleLine
end if
If you want the line across the top of the data field on the first detail row (i.e., not around the header), use the same logic as above, except using PreviousValue().
HTH,
Carl
Edited by: Carl Sopchak on Feb 11, 2009 8:25 AM -
Read an excel file and convert to a 1-D array of long, 32-bit integer?
My vi right now reads an column of numbers as a 1-D array, but I need to input the numbers manually, and for what I'm trying to do, there could be anywhere between 100 to 500 numbers to input. I want the vi to be able to read the excel file and use that column of numbers for the rest, which the data type is long (32-bit integer).
I have an example vi that is able to get excel values, but the output data type is double (64-bit real).
I need to either be able to convert double(64-bit real) data to long (32-bit integer), or find another way to get the values from the excel file.Just to expand on what GerdW is saying. There are many programs that hold exclusive access to a file. So if a file is opened in Excel, the LabVIEW cannot access the file.
What is the exact error code? Different error codes will point to different issues.
Make sure the csv file is exactly where you think it is and LabVIEW is pointing to the right place. (I'm just going through stupid things I have done)
There are only two ways to tell somebody thanks: Kudos and Marked Solutions
Unofficial Forum Rules and Guidelines -
i'm using diadem version 8.1, and my operating system is windows Me.
i'm also want to know if the diadem hae an "undo button" or not??
Thansk.Hi,
To import EXCEL files you can open the device DATA and then go to the menu FILE->OPEN. In the following dialog you must set the FILE TYPE to Excel. If you open an Excel file with that settings the Excel-file-import-wizard will be launched. With the wizard you configure the parameters which should be imported (that includes header parameter too). Please refer to the NI-Web page to get the latest service pack "SP1d" for the Excel import filter (http://digital.ni.com/softlib.nsf/webcategories/85256410006C055586256BBB002C104B?opendocument&node=132070_US)
Yes, in DIAdem 8.1 we support undo for displacements in the device GRAPH. For DIAdem 9 we expand this functionality.
I hope this information will help you.
Greetings
Walter Rick -
Problem opening exported Excel file
Hi
We recently experienced a problem that has never occurred before. When trying to open an exported Excel file from a query with hierarchical structures (using the link <SAP_BW_URL DATA_PROVIDER="DP" CMD="EXPORT" FORMAT="XLS"> on the 0ANALYZER template), we are asked to log on to the BEx web, as if it's a Web application. If it is an Excel exported from a hierarchy-free query, then the file open directly without the logon prompt. According to the user, he used to be able to open downloaded hierarchy-expanded data without going through the logon process.
Has anyone experienced the same problem before? Can you share you solution to help us? Thank you in advance!If I understand your issue correctly we used a different fix. Very easy to do.
First, what I believe is happening is that your icons for the hierarchy are being exported as a reference with absolute URL (images can not be exported). This means that when Excel opens the file it tries to resolve the URL and to do that it requires a login.
You can verify that absolute URLS are being exported by opening your excel export in a text processor (its actually XML). Look for URLS that start "http://.../MIME/BEx/Analyser/xxxx.gif". which are icons.
This took us quite a while to figure out because excel was not asking us to log in. It just timed out for each URL reference. Took forever.
The fix we used was to add the following entry to this table on your BW system... (LANG must be empty), Caption is optional:
Table=RSZCONTROLTEXTS,
Entry=
Lang = "",
TARGET_ID="ID_FLAG_XLS_ABS_URL",
CAPTION=Force Excel Export to use relative URLs in XML output for icons
You can experiment with results before you try by editing your XML file (the excel export from web) and removing from those icon URLS the "http:...." up to Mime. This makes it a relative URL. The down side is that it cannot find the icon and displays a box with an X in it. I believe there are techniques for importing icons into excel. They would look like this after surgery <img src="Mime/BEx/Analyzer/hieric2.gif">
If you implement the fix and don't like the effect just remove the entry from the table and all is back to before. I do not believe this is a transportable fix though.
We discovered it when we were pretesting a bunch of service pack upgrades. See SAP note #650887
Hope this helps
Dave Schuh -
Print whole answer as pdf (not as export excel file)
Dear, we are receiving some info (information of sessions designed by people) with text fields with no limits of characters.
Would it be possible the text box is growing as the people write more or less? Instead of having a "fix box size" with a scrollbar when the text is over the size of the box...
We would like then to print the pdf's with all the text, so an option is also if we can just have a way to print all the text, again from the pdf, not from the excel file with all the answers.
Thanks in advance!
The Erasmus+ teamHi;
A feature in a Paid level subscription (Basic and Plus) is downloading a PDF of the response from the View Responses tab by selecting any response row and choosing "Download Response as PDF Form". This downloads a PDF of the response with all multi-line text fields expanded to fit all the text the user input so it can be printed.
Thanks,
Josh -
Is it possible that i can create a dynamic excel file (destination)
ex, i want to create a Dyanamic Excel destination file with a filename base on the date
this will run on jobs. Is this possible?
11172006.xls, 11182006.xlsThis example is useful for loading data from an OLEDB source into a dynamically created Excel file.
NOTE:
This is the core functionality. Things like logging, checkpointing, documentation, etc., are at the user's discretion.
Steps:
1. Click on package properties. Set "DelayValidation" property to True.
The package will not validate tasks, connections, until they are executed.
2. Create a package level variable "XLFileRootDir" as string and set it to the root
directory where you want the excel file to be created.
Example: C:\\Project\Data\
3. Create an Excel connection in the connection manager. Browse to the target directory
and select the destination XL filename or type it in. It doesn't matter if the file doesn't exist.
4. Go to the Excel connection properties and expand the expressions ellipse (The button
with "..." on it).
Under the property drop down, select 'ExcelFilePath' and click on the ellipse to
configure the expression:
@[User::XLFileRootDir] + (DT_WSTR, 2) DATEPART("DD", GETDATE()) + (DT_WSTR, 2) DATEPART("MM", GETDATE()) + (DT_WSTR, 4) DATEPART("YYYY", GETDATE()) +".xls"
This should create an xl file like 01132007.xls.
5. Add a SQL task to package and double click to edit.
In the general tab, set 'ConnectionType' to 'Excel'.
For 'SQLStatement', enter the create table SQL to create destination table.
For example:
CREATE TABLE `Employee List` (
`EmployeeId` INTEGER,
`EmployeeName` NVARCHAR(20)
Copy the create table command. It will come in handy later.
6. Add a Data Flow task. In the data flow editor, add an OLEDB source and an Excel destination.
Configure the source to select EmployeeId and EmployeeName from a table.
7. Connect this to Excel destination. In the destination editor, select the Excel connection in the
manager, choose 'table or view' for data access mode and for 'name of the Excel sheet' click on
new button and paste the create table command from Step 5.
Map the columns appropriately in the mappings tab and you are done.
Let me know if you have any questions.
I was able to get this to work (dynamic Excel file name with date), but I want to process multiple
data files per day, so I must add hour and minute to the file names "..._2014.xls". But as soon as I add the hour/min to the 'ExcelFilePath' of the Connection Manager the Excel Destination task fails because it can't find the file.
So can you please help me how do i do this ?
Thank you -
I don't have any problems creating and filling an excel sheet with data. I use the New Report.vi, Easy Title.vi, and Easy Text.vi to create the file. I then save and dispose properly.
What I don't seem to be able to do is open the exsting file and append data to the end of the sheet.
Thanks in advance for your help.
toddHi Todd,
You can do this by creating a new Excel report with the existing excel file path wired to the "template" input. Then use "Excel Get Last Row.vi" (located under Report Generation\Excel Specific\Excel General) to obtain the location of the last row. Then use that location to input new data into the file.
Hope this helps,
Dan -
.excel file takes lot of time to open after running Custom Program
DB:11.2.0.2.0
Oracle Apps:12.1.3
O/S:AIX 6.1
Hi All,
Issue Description:
When the report is submitted, the data gets populated into the table in less than 30secs and xml gets generated within a minute.
But the program takes some time in displaying the output around 5 mins but when we tried with html, it opens up quickly.
The template has a complex matrix, layout wherein, we are using nested FOR loops to display the data in the required format.
Yesterday, we ran the report “Custom GL STAT Trial Balance Report” in DEV Instance and for around 500+ records, it took around 5 mins.
The excel file is only 1 MB and xml generated is 245 KB
Moreover, recently we had increased the OPP jvm to 3GB to avoid java.lang.memory error what was occurring earlier.
select DEVELOPER_PARAMETERS
from FND_CP_SERVICES
where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES where
CONCURRENT_QUEUE_NAME = 'FNDCPOPP');
2 3 4
DEVELOPER_PARAMETERS
J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx3072m
Could this issue be due to JVM increase issue or something else?
How, could we monitor the jvm while the report is running to troubleshoot the issue?
Thanks for your time and help on this if anyone is willing to share such an experience faced before?
Regards,DB:11.2.0.2.0
Oracle Apps:12.1.3
O/S:AIX 6.1
Hi All,
Issue Description:
When the report is submitted, the data gets populated into the table in less than 30secs and xml gets generated within a minute.
But the program takes some time in displaying the output around 5 mins but when we tried with html, it opens up quickly.
The template has a complex matrix, layout wherein, we are using nested FOR loops to display the data in the required format.
Yesterday, we ran the report “Custom GL STAT Trial Balance Report” in DEV Instance and for around 500+ records, it took around 5 mins.
The excel file is only 1 MB and xml generated is 245 KB
Moreover, recently we had increased the OPP jvm to 3GB to avoid java.lang.memory error what was occurring earlier.
select DEVELOPER_PARAMETERS
from FND_CP_SERVICES
where SERVICE_ID = (select MANAGER_TYPE from FND_CONCURRENT_QUEUES where
CONCURRENT_QUEUE_NAME = 'FNDCPOPP');
2 3 4
DEVELOPER_PARAMETERS
J:oracle.apps.fnd.cp.gsf.GSMServiceController:-mx3072m
Could this issue be due to JVM increase issue or something else?
How, could we monitor the jvm while the report is running to troubleshoot the issue?
Thanks for your time and help on this if anyone is willing to share such an experience faced before?
Regards, -
using Vista, sometimes after creating and saving an excel file, the document is not visible when the file is reopened.
selecting full screen mode makes the document visible, but the toolbars disappear and the print option does not show up on a right click. How can i print the document and see the document in some other mode than full screen?In order to print, you can click the CTRL+P keys to launch the print dialog,
Regarding the missing toolbar, try clicking the ALT key to shouw the software menu, then look around under the view option for any available toolbar settings,
If you cannot find it, i would recommend you to try the Microsoft support forums, as they have some more knowledge with their software features
Say thanks by clicking the Kudos thumb up in the post.
If my post resolve your problem please mark it as an Accepted Solution
Maybe you are looking for
-
All episodes don't show up in Grid view
I've got 20 seasons of Top Gear all converted and waiting to be added to iTunes. They exist on my external HD, so when I drag them in to iTunes I hold in Alt/Option, so they stay there. If I drag in the folders for seasons 1 through 13, all episodes
-
Hi all, I have created one new document type with allowed item category =S only. I am making PO with this doc type to directly supply to customer. On his information I will make GR. But in GR (MIGO), the storage location field is mandatory. It is obv
-
Malformed HTTP request in access.log
Hi, we're running a quite standard web application on a weblogic server 9.1, clients are using Internet Explorer 6, and lately, I checked the access.log, and sometimes, logged HTTP requests look malformed, for example: access.log00575:xxx.xxx.xxx.xxx
-
Problem with NERO RECODE 2: I have Nero Recode 2 and i try to convert a dvd. I only can convert with the Profil"PSP" for the Playstation Why it´s not possible to us another profil? thanks for your help rene´
-
CS2 or CS3 Licensing Agreement
I'm being told by a colleague at work that the Adobe licensing agreement will allow you to install the same copy of software both at work, and at home. Apparently the reasoning is the individual will take their work home with them! I've never heard o