Issue with Excel Report generation
Hi Experts,
I'm trying to export the data of reports in excel format ,it's exporting query instead of actual data . please suggest me the way to fix the issue . when i try to save the exported excel it's shows the name as query.xls instead of exportXXXX.xls
Any ideas appreciated
Regards,
TD
Well after some debugging I found it. Apparently for Excel 97 only there is a problem that when you qiut MSGraph it may not save properly so the VI had the Quit Property removed.
I have added it into my code and it seems to work and will see how well it does and if I run into any problems.
Jeff D.
OS: Win 7 Ultimate
LabVIEW Version: 2011,2010,2009 installed
Certified LabVIEW Architect
Similar Messages
-
Issue with excel report generated by Crystal Report
Dear support center,
I am trying to evaluate the crystal report package available through the VS2005 Pro edition for an application at work. I am new to Crystal Reports and using CR 10 on my system.
Here is a visual image of my report format. I use a dataset to flood the report.
http://www.coe.uncc.edu/~jjzachar/CRHelp/CrystalReport.JPG
Here is the excel report I receive. I want to eliminate:
http://www.coe.uncc.edu/~jjzachar/CRHelp/excelOutput.JPG
1. The extra blank rows after each "data entered or shown in my report"
2. It seems like many of the fields are being merged. How do I avoid this?
Please help!
Thanks a lot for your time ... in advance!
Sincerely,
Jerry ZachariasSwetha,
I export the report using "VB.net" code. So, I dont' really get any window options.
Here is the snippet of code I am using ...
Private Sub ExportReportFormats(ByVal fileName As String)
'Dim a As New CrystalDecisions.Shared.DiskFileDestinationOptions()
'a.DiskFileName = fileName
Dim CrExportOptions As CrystalDecisions.Shared.ExportOptions
Dim CrDiskFileDestinationOptions As New CrystalDecisions.Shared.DiskFileDestinationOptions()
CrExportOptions = objRpt.ExportOptions
If fileName.EndsWith(".pdf") Then
Dim CrFormatTypeOptions As New CrystalDecisions.Shared.PdfRtfWordFormatOptions()
CrExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.PortableDocFormat
CrExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions
CrExportOptions.FormatOptions = CrFormatTypeOptions
'CrDiskFileDestinationOptions.DiskFileName = "C:\Documents and Settings\Robot\Desktop\Trash\" & fileName
'CrDiskFileDestinationOptions.DiskFileName = "C:\Documents and Settings\Robot\Desktop\Reports\" & fileName
CrDiskFileDestinationOptions.DiskFileName = exportFolderLocation & "\" & fileName
ElseIf fileName.EndsWith(".xls") Then
Dim CrFormatTypeOptions As New CrystalDecisions.Shared.ExcelFormatOptions
CrExportOptions.ExportFormatType = CrystalDecisions.Shared.ExportFormatType.Excel
CrExportOptions.ExportDestinationType = CrystalDecisions.Shared.ExportDestinationType.DiskFile
CrExportOptions.DestinationOptions = CrDiskFileDestinationOptions
CrExportOptions.FormatOptions = CrFormatTypeOptions
'CrDiskFileDestinationOptions.DiskFileName = "C:\Documents and Settings\Robot\Desktop\Trash\" & fileName
'CrDiskFileDestinationOptions.DiskFileName = "C:\Documents and Settings\Robot\Desktop\Reports\" & fileName
CrDiskFileDestinationOptions.DiskFileName = exportFolderLocation & "\" & fileName
End If
objRpt.Export()
End Sub -
I have report where we have ,Manager Name as First Column, Quarter as Second Column, Week Of Quarter as third column,
We are filtering based on Trips means how many trips representative has made to the customer based on quarter and week
Right now we are filtering based on 2015q3 and week 1. When I browse in cube I get the data but in excel I do not get the data,
what could be the problem
Smash126Hi Smash126,
I would suggest you to install "OLAP PivotTable extension" to View PivotTable MDX, so we can directly copy the PivotTable MDX query and then run it on your SSAS server to troubleshoot this issue. Please see the following screenshot:
We can download the extension from Codeplex site below:
http://olappivottableextend.codeplex.com/
Regards,
Elvis Long
TechNet Community Support -
Decimal delimiter and excel report generation
Hello,
I've a problem with the "Report Generation Toolkit" while trying to generate reports in MS Excel.
I first select data from an Access database table. Although the database table contains information
in string-format as well as numbers, in the first instance it'll be passed as an array of strings to the
report generation vi's (generate easy table).
While my computer's region settings (WinXP) are always set to german standard I now get different
results if I on the one hand try to generate a report table in Word-format (Word Easy Table) and
on the other hand a report in Excel-format (Excel Easy Table).
While all numbers are displayed correctly within the Word-table, they aren't within the Excel-table.
Thereby (Excel-table) the numbers are converted falsely as shown below:
0,12345 -> 0,12345 (values < 1 are displayed correctly)
1,2345 -> 12.345 (false)
In my opinion there's a problem with the decimal delimiter. Does anybody have an idea of how to maybe
modify this way of working only within my application without changing my computer's region settings?
Thanks & Greets
MichaelOn the one hand you can configure LabView to either use the localized decimal point or not (Menu Tools-->Options->Frontpanel->Use localized decimal point), on the other hand you can format singlse strings either with or without using the localized decimal point. The VI "format sting.vi" can use the format-sting %.; or %,; to define the decimal point. (Just make a double-left click on the VI to start the format-string editor for help).
-
How to add multiple graphs in one chart(ex.scatter chart) using labview excel report generation toolkit. Assume like my test data is like below:
X-Axis
Data1
Data2
1
1
2
13
2
3
14
3
4
15
5
5
16
3
6
7
7
The above graph generated manually in excel. I want to generate the same using excel report generation toolkit. when I use Excel Insert Graph.vi where the input data is 2D array with numeric data but here labview converts the empty cells (eg.x -axis 1,data1- is empty) as zero and while plotting i am getting zero for empty cell values.
Can anyone please help me on how to plot the graph without adding zero for empty cells?
Thanks&Regards,
Bharathi T
TE
X-Axis
Data1
Data2
1
1
2
13
2
3
14
3
4
15
5
5
16
3
6
7
7Hi Bharathi,
The Excel Insert graph function takes in only 2d arrays as inputs. Since arrays can only have numeric values, any table with a null string is read as 0. Now to get a plot like you mentioned, you could read the table and replace blank Strings as NaN. NaN values in an array when plotted do not appear in the excel sheet. For reference I have attached a sample vi to help you understand.
Regards
Vijetha Nuthakki,
Applications Engineer
NI Systems India
Attachments:
Excel_graph_multiplot.vi 21 KB -
Performance Issue with VL06O report
Hi,
We are having performance issue with VL06O report, when run with forwarding agent. It is taking about an hour with forwarding agent. The issue is with VBPA table and we found one OSS note, but it is for old versions. ours is ECC 5.0. Can anybody know the solution? If you guys need more information, please ask me.
Thanks,
SuryaSreedhar,
Thanks for you quick response. Indexes were not created for VBPA table. basis people tested by creating indexes and gave a report that it is taking more time with indexes than regular query optimizer. this is happening in the funtion forward_ag_selection.
select vbeln lifnr from vbpa
appending corresponding fields of table lt_select
where vbeln in ct_vbeln
and posnr eq posnr_initial
and parvw eq 'SP'
and lifnr in it_spdnr.
I don't see any issue with this query. I give more info later -
I am creating a Word document with the Report Generation Toolkit, and LabVIEW 8.2.1. In the report I am using a template that has page numbering enabled in the center. When I try to add a text block to the left side footer, it eliminates the page numbering and adds my text on the left side. I found "Set Report Footer Text" and "Word Set Page Numbering" vi's that may be the clue to this. When I use these two vi's I either get Page 1 of 456789-001 on the left side, or if I reverse the order I get only 456789-001(text) in the left side with nothing in the center. What I would like to achieve is 456789-001(text) on the left footer, and Page 1 of 2 in the center. Is this possible and if it is, then how can I do it?
Hi SciManStev,
I have attached a vi where you can see how they can be made to work together. You have to design it such that one follows the other. If you don't design it that way, it results in a race condition and only one of them get executed.
Good Luck!
Warm regards,
Karunya R
National Instruments
Applications Engineer
Attachments:
SciMan1.vi 14 KB -
A serious issue with excel file read in ODI
hi gurus,
Issue with excel file read is that we can read only one file by setting the path from ODBC Data Source Administrator-->System DNS -->Select Work book
what i want to read the dynamic path(Every time I cant go back and set the Work book to select the excel file..
So i came up with a solution to write a Vbscript that convert the excel to csv my problem got solved for dynamic paths the script is as follow:
Set objArgs = WScript.Arguments
For I = 0 to objArgs.Count - 1
FullName = objArgs(I)
FileName = Left(objArgs(I), InstrRev(objArgs(I), ".") )
Set objExcel = CreateObject("Excel.application")
set objExcelBook = objExcel.Workbooks.Open(FullName)
objExcel.application.visible=false
objExcel.application.displayalerts=false
objExcelBook.SaveAs FileName & "csv",23
objExcel.Application.Quit
objExcel.Quit
Set objExcel = Nothing
set objExcelBook = Nothing
Next
Now this script convert the xls file to csv with comma seprated values
e.g in excel sheet if data is ABC XYZ PQR
csv will come with ABC,XYZ,PQR
here the delimiter is , i want the delimiter as pipe | who's ascii code is 124
but if i change 23 with 124 its not working i getting the error cannot save as...
can anyone tell me that what should be the correct code for pipe
so that the output is ABC|XYZ|PQR
AS WE CAN USE THE SCRIPTS IN TOOLS
Edited by: 789141 on Sep 14, 2010 11:33 PMI dont have the answer for your question but i have different approach in handling multiple Excel File.
Step 1. Copy a sample source Excel File and Call it Final.xls .
Step 2. Map this Final.xls to DSN and in Topology call this Final.xls
Step 3. Do the Reversing and Map and test the Interface . Once its done.
Step 4. Create a Package and using a http://odiexperts.com/?p=1426 get the list of all the Excel File
Step 5 . Using this http://odiexperts.com/?p=273 create a Loop to Read the Excel File name
Step 6 . Copy using OdiFileCopy to Final.xls and run your interface .
Step 7. Increment the Loop and copy your next File for Final and run the interface
Step 8 . Finally you will be able to read all the Excel File .
Step 9 . Delete the source file [ Optional ]
Hope this helps. -
I was wondering how to align the axis labels, i.e. 90 degree or such when creating a graph with the report generation toolkit in word.
I can do it after the document is created through Format axis title -> alignment but is there a way out of LabVIEW?
I'd especially like to rotate the y-axis label by 90 degrees.
Thanks a lot,
JuergenI think he means he can modify it by hand after the report has been generated... But what I want to do is generate the word graph out of labview already with the rotated axis label...
After I posted this I found out that we can do this with a macro and use it from labview, but unfortunately I don't know VB, or VBA...
Like this: -
Variable input values issue with Portal reports in WAD
Hi Gurus,
We have issue with our reports which are created in WAD and when executed through CRM portal. We are executing the report with some selection criteria by changing default values, and once we get the out put we use SAVEAS option to save the report to favourites. But the issue arises when we open the reprot again by clicking OPEN tab next to SAVEAS button. It opens our report, but the selection screen vaues are getting changed to default instead of showing the values which we entered before saving the report.
ex: we have fiscalyear/period: default value is 001.2009 - 010.2009, but i changed the value to 001.2010 - 010.2010 and saved the out put of the report. when i reopen the report useing open option, it is showing 001.2009 - 010.2009 in input screen.
Please let me know if some one has come accross this issue, or is it standard SAP behaviour. It is working fine when executed through Query designer. This is not related to personlization of variabl.es.
Regards,
YadaHi Hari,
Thanks for your promp response...but is there any settings to get the variable values with out saving as variant, because its working fine when executing through query designer....
Regards,
Yada -
Issues with BEx Reports in SAP Enterprise Portal
Hello Experts,
I am facing issues with BEx reports integrated in portal. Below are more details:
Scenario 1:
Execute a BEx report in the portal, save it in 'My Portfolio' using 'Save As' button. Now open the saved report from 'My Portfolio'. Below is the issue for this scenario:
When I open the saved report, I get 2 error messages and 1 info message at the top of the report. They are as follows:
The metadata of 'ITE' 'TEMPLATE_PARAMETERS' are incorrect for parameter 'COMMAND_PROCESSING'
The metadata of 'ITE' 'FILTER_PANE_ITEM' are incorrect for parameter 'TEXT_WRAPPING'
Variables for characteristic Fiscal year/period[0FISCPER] cannot be processed
Scenario 2:
Execute a BEx report in the portal, save it in 'BEx Portfolio' or 'Favourites' using 'Save As' button. Now open the saved report and click on 'Send' button. As expected, the BEx broadcaster wizard should appear but, it shows '400 BAD HTTP REQUEST'. While if I open the report (not the saved one) and click on 'Send' button, it works.
Helpful pointers appreciated.
Thanks
VikashHI Suman,
I am not adding the report to favourite using browser favourite. Below is the flow:
Run the report in portal.
There is a 'Save As' button at the top of the report. When I click that button, I get a pop-up with 3 tabs for saving the report.:
Favourite
BEx Portfolio
My Portfolio
save the report in the favorites or BEx portfolio tab and then open it and press 'Send' button
BEx Broadcaster Wizard should appear but instead of that, it shows '400 BAD HTTP REQUEST'.
If I press send for unsaved report, then BEx broadcaster Wizard is shown.
Thanks,
Vikash -
User issue with a report supply planning area today monthly
this is a support issue....the user has an issue with a report supply planning area today monthly. The user is getting wrong values in BW, it sums PLOs and POs under production (config). for eg: BW says we are producing 46T while in R/3 we have 4T.
The issue was related to the heap size being too much and as a result the Class block memory was not getting enough memory. I think we can make a use of -XXCompressedRefs:32 parameter in the Java start up to allow the heap size to increase till 32 Gb.
-
Having an issue with running reports. We have created the folder under C:\Program Files\Cisco CRS Historical Reports\reports ..to resolve a bug but now the user gets the attached error message every morning. Any ideas?
Thanks,
JoeHi Joe
No attachment?
Aaron -
Hello,
My vi is gathering data from a piece of machinery. At varrious points durring the process, my vi must create printable reports. I am using the report generation tool kit to do this. What I want to do is for every report generated durring the run, add it as a new worksheet in an Excell workbook. My excell template works fine for the initial master report and I can add new data to new worksheets. What I am having a problem figuring out is how do I add the new data to a new worksheet using an excel template? I have 5 different reports that need to be generated at different times with some more often than others. I would like all these reports to be in the
same master excel file. Thanks in advance
-Greg
Gregory Osenbach, CLA
FlukeHi Greg,
There is no built-in support in LabVIEW to add a new worksheet to an existing Excel report simply because this functionality does not exist in the Excel application itself.
My suggestion would be to open up the template you wish to use for the new worksheet. Copy the cells from the template and paste them into your new worksheet that you've created. Then close the original template and you have another copy of the template in which you can populate with data values.
I have attached an example program of how to Copy and Paste a Cell in Microsoft 97 Using ActiveX in LabVIEW to this post. Hope this helps!
Kileen C.
Applications Engineer
National Instruments
Attachments:
XL_cell_copy_and_paste.llb 76 KB -
Issue with SSRS Report Exporting to Excel and word
Hi,
When report is exporting in word and Excel getting format issue, but same report export with pdf there is no issue.
Regards,
AfrozYou need to be always careful when export format is Word and specially Excel. Sometimes report result looks good in Report Viewer and PDF too, but it may not in MS Word and MS Excel.
You need to understand Word and Excel limitations and align all the data regions (Tablix, Rectangles, Texboxes) in correct way.
Also, you may post the actual formatting issue that you get. (With screenshot if possible)
Please read Limitation section in below:
Exporting to Microsoft Word
Exporting to Microsoft Excel
Refer:
Ten Common SQL Server Reporting Services Challenges and Solutions
-Vaibhav Chaudhari
Maybe you are looking for
-
Problem with InputText field in JDeveloper
Hi, I have this design of web page: http://img26.imageshack.us/my.php?image=76778817.tif but when I run the page I see this: http://img21.imageshack.us/my.php?image=60820183.tif And when I click Cancel which points to previous page and then from that
-
I am trying to call sharepoint online from powershell. Below is the code. I get Exception calling "ExecuteQuery" with "0" argument(s): "The remote server returned an error: (407) Proxy Authentication Required." $loadInfo1 = [System.Reflection.Assemb
-
Can't import schemas in classpath when generating JAXB
I'm trying to create schemas that are used to provide basic components for more complex schemas, using the same design idea behind creating abstract Java classes and then extending them. I'm having trouble referring to classes in different modules, t
-
W510 - DisplayPort to HDMI with Audio
Hi, I am wondering if the new Calpella solution in W510 offers DisplayPort to HDMI conversion with audio-support. Is there any information so far regarding this issue? Would be nice to get some official statement. greets Beniamin
-
External authentication using Headervariable
Hi SAP Experts We have configured External authentication for WEM using Headervariable.We are using BI Java 7.0 External authentication is working fine using Headervariable Login module for URL http://<WEb Server hostname>/irj which redirect to http: