Revised "Generate Excel Report" Example

I recently answered a question from a Forum user about an error encountered when trying to generate an Excel spreadsheet with the Report Generation Toolkit.  I thought that the example code he was using was "unusual" and overly complex, and just discovered that it was, in fact, the LabVIEW 2013 "Generate Report From Template (Excel)" Example.
In the spirit of trying to demonstrate how nice the new(er) "Easy Excel" functions are, I rewrote this Example, and have attached it here.  While doing so, I discovered (and have reported to NI) a "bug/feature" of the Excel Insert Graph function.  One of its parameters allows you to position the graph by specifying the Left and Top edges (Left would be the Excel Column, Top would be the Excel Row).  The only problem is that the parameters are reversed -- to put the graph on Row 1, Column G, you specify (0, 6), not (6, 0).  Oops ... 
Solved!
Go to Solution.

Here is a Snippet, in LabVIEW 2012, of the Excel Demo (the Revised Generate Excel Report Example).  If you have LabVIEW 2012 or more recent, you should be able to drag this into a blank Block Diagram and have the VI "magically" created.  If you have an earlier version of LabVIEW, you can at least see a picture of all the VIs and wiring here, and can open LabVIEW and "build it yourself".  There are no Case statements, so nothing is hidden from view.  In case the image is too small, I also attached the PNG file, which you should be able to open with an Image Viewer and potentially print out for yourself.
Attachments:
Excel Demo.png ‏108 KB

Similar Messages

  • XML Publisher to generate Excel reports

    Can we use RTF template to generate Excel reports? Is all the process the same or do I need to do some additional set ups? Also, can I create a custom report , set the output format to xml and run XML Publisher on the top of it to generate output of my choice? HAs anybody tried this? or is it possible only in standard reports?
    Pl help. This is v urgent , i need to design my process flow accordingly
    Thanks much

    Hi
    Yes you can generate Excel from an RTF template - there are some limitations. The Excel in this case is not binary Excel - its XHTML and the mime type is set so that Excel opens it.
    So, you can not embed formulae, macros, etc in the RTF template and get the Excel output to execute them.
    You second question is what Publisher is all about, give it XML data and a layout of your choice and then pick the output format you want.
    Tim

  • Generating Excel Report from Outlook 2013 for the meetings attended/ accepted

    Hello Team,
    Could you please advise how do I Generate Excel Report from Outlook 2013 for the meetings I attended/ accepted. Also I do I check or figure out the time I spent attending meeting.
    Please help to answer me ASAP.
    Thank you
    Preet

    Hi Preet,
    As far as I know, no features in Office client can generate Excel workbook from Outlook. But we can implement this requirement by macros. If you want to receive more information, I suggest you post this issue on MSDN forum.
    http://social.msdn.microsoft.com/Forums/en-US/home
    The reason why we recommend posting appropriately is you will get the most qualified pool of respondents, and other partners who read the forums regularly can either share
    their knowledge or learn from your interaction with us. Thank you for your understanding.
    Best regards,
    Greta Ge
    TechNet Community Support
    It's recommended to download and install
    Configuration Analyzer Tool (OffCAT), which is developed by Microsoft Support teams. Once the tool is installed, you can run it at any time to scan for hundreds of known issues in Office
    programs.

  • R12 generate excel report?

    Dear all,
    I was using 11.5.10 and which supports to generate report in excel file format by using owa.get_page utilities on database 9.2.0.3.
    However, I put the same package in new R12 (database 11g) and run the report with error message like owa utilities are not available.
    Anyone generates excel report from R12?
    Thanks.

    However, I put the same package in new R12 (database 11g) and run the report with error message like owa utilities are not available.Please post the complete error message.
    Anyone generates excel report from R12?Please see old threads -- http://forums.oracle.com/forums/search.jspa?threadID=&q=Excel+AND+Concurrent&objID=c3&dateRange=all&userID=&numResults=15&rankBy=10001
    Thanks,
    Hussein

  • Generate Excel report in JSC

    Is there any easy way to generate excel report for user to download using JSC?

    Hey, here's code that creates the file in memory and pops up a save dialog to allow the user to download
    ByteArrayOutputStream baos = eh.doCreateWorkbook(myList, SQL);
    ExternalContext ctx = FacesContext.getCurrentInstance().getExternalContext();
    HttpServletResponse response = (HttpServletResponse) ctx.getResponse();
    // DOWNLOAD THE EXCEL FILE
    response.setHeader("Content-disposition",
              "attachment; filename=" +          "OBC_Upload_Summary_"+getCurrDate()+".xls");
    response.setContentLength(baos.size());
    ServletOutputStream os = response.getOutputStream();
    os.write(baos.toByteArray());
    os.flush();
    os=null;
    baos=null;

  • Generating Excel report from java

    I'm generating Excel report from java .I want align a text in top ie)align top.i searched for that ,but i didn't get that.Is it possible to perform align top,if so how?

    the Progrma I' m executing is as follows :
    import java.io.*;
    import java.util.*;
    import jxl.*;
    import jxl.write.*;
    import jxl.write.Number;
    public class excel
    private String filename;
    private WritableWorkbook workbook;
    public excel(String fn)
    filename=fn;
    public void write() throws IOException, WriteException
    WorkbookSettings ws = new WorkbookSettings();
    ws.setLocale(new Locale("en", "EN"));
    workbook=Workbook.createWorkbook(new File(filename),ws);
    WritableSheet sheet=workbook.createSheet("First Sheet",0);
    Label label=new Label(0,2,"A label record");
    sheet.addCell(label);
    Number number=new Number(3,4,3.142);
    sheet.addCell(number);
    workbook.write();
    workbook.close();
    public static void main(String args[]){
         try{
                   excel ecl = new excel("D:\\TestXSL.xls");
                   ecl.write();
              }catch(Exception e){
              e.printStackTrace();
    }

  • Generating Excel report from java by using POI

    Hi
    Im trying to generate the report in Excel using POI. Im retrieving the data from the table. As per my query its having millions of records.
    For example, Im giving the sheet name as below given
    HSSFSheet sheet      = wb.createSheet("SampleReport_01");
    In a single sheet, 65000 records can be displayed. Im checking this condition also. It exceeds 65000 records, the records will be dislayed in the next sheet "SampleReport_02","SampleReport_03" and so on. Im incrementing this count 01, 02 , 03 and so on.
    While generating the report, its giving out of memory exception.
    Can anyone suggest, this is because of huge volume of data? If so, how to handle this one.
    Thanks in Advance
    Dhilip

    your workbook object is in the jvm memory. putting so much data in it while working with it will take memory allocated to jvm.
    better solution is to make a .csv file. Add the data in it with through append (check this [http://www.javacoffeebreak.com/faq/faq0086.html|http://www.javacoffeebreak.com/faq/faq0086.html] ) .
    latter import the .csv file into excel sheet manually.

  • Image in generated excel report

    Hi to all,
    I am creating an excel report by following the demo in otn.oracle.com/products/reports/htdocs/getstart/demonstrations/index.html. However I need to include an image to the excel output. Initially, when I made the layout design in excel, I am able to embed the image through the insert -> picture from file function in excel but when I converted it to HTML and JSP, it was converted as an img tag with a source pointing to an image file in a directory. When I generate the excel report, there is no image and I am left with transparent box that act as a placeholder for the missing image. Does anyone know how the image can be embedded to the excel report when it is generated?
    Thanks in advance for your help.

    Hi swati,
    If we want to display an image which located in sharefolder based on ID, we can refer to the following steps:
    Insert an image in the design surface, select External format as the image source.
    In “Use this image” tab, click the fx button to add the expression like below:
    ="File://" + Fields!FolderPath + "/" + User!UserID + ".jpg"
    The link below is for your reference:
    File URIs in Windows
    Hope this helps.
    Thanks,
    Katherine Xiong
    Katherine Xiong
    TechNet Community Support

  • Generating excel reports

    hi,
    can anyone tell me , how to generate a excel report from java. i'm getting data from database using jdbc, with that data i need to create excel report.

    Hartmut,
    Using 1.2.2 Programmatically i want to create a DSN for output excel file.
    You gave me this solution in your previous forums.
    con = DriverManager.getConnection("jdbc:odbc:Driver={Microsoft Excel Driver (*.xls)};" +"DBQ=c:/temp/test2.xls;DriverID=22;READONLY=false","","");
    But, This works fine with build 1.3.1_02-b02.
    But gives java.sql.SQLException: [Microsoft][ODBC Driver Manager] Data source name too
    long error with build jdk-1.2.2_008.
    Any solution would be appreciated.
    [email protected]

  • Error while generating excel report on citrix Metaframe

    Hi All,
    I have developed a form which generates excel on client server. At my work people are using citrix metaframe and when i try to open the same form on the citrix the host command does not work. Can any one help me with this issue.
    currently the host looks like this
    HOST('C:\Program Files\Microsoft Office\Office\EXCEL.EXE c:\sgir938.xls');
    Regards,
    Ritesh

    Is anyone having any idea about it...

  • Generate excel reports

    hi,
    can anyone help me to create excel reports from xml file. i have data in xml file, i need to create excel reports.
    Thanks in advance
    ramesh

    look at this thread in the artima forum:
    http://www.artima.com/legacy/design/eventgen/messages/22.html
    There is also a library from apache.org, to acess MS Office files, called POI - but I don't exactly know what it does.
    wami

  • Issue...SAP gui popup window along with Excel report

    Hi,
    In MSS portal I am trying to review one excel report. While clicking particular report link in portal it is opening a small sap gui window while generating excel report. I don't know how to stop that gui pop-up window?
    Thanks,
    Padmanaban

    Hi Padman,
    Pls. install JVM on you local machine..
    Regards
    Pramod

  • How to generate excel file in oracle forms 10g on client machine

    dear Sir,
    I am using just file server(installed 10g dev suite) not a oracle application server,
    I am running my application from another machine ,it running fine i want to generate excel report on client machine
    presently i m using OLE2 for fetching the data in excel , it is working fine but it generates the excel file on file server machine and i want get the output excel on the client machine. aftre OLE2 i m using CLIENT_OLE2 with webutil (instead of OLE2) its get compile successfully but during runtime it give error "oracle.forms.webutil.ole.OleFunctions bean not "found.CLIENT_OLE2.create_obj will not work"
    *so please tell me without oracle application server is this possible or not .*

    your webutil on server side is not configured
    you need to re install the webutil jacob.dll files etc. then it will work fine..
    you can also generate excel file using reports to change the destination format in SPREADSHEET

  • Webutil error while generate excel form

    Hi
    In my forms appl. I use webutil in order to generate excel reports
    I have to midtier instances both running on a separate host.
    End users connect through a WLB frontend.
    At one of the midtiers, when generating a excel report using webutil "error while running kit"
    No errors appear in any log on the midtier. On a log table in the database ORA-12703 appears but I'm not sure if thats related.
    On the other midtier, with the same compiled forms using the same database it works fine.
    Does anyone have a clue?
    reg.
    Michel

    Hi
    Are you talking about adobe forms or smartforms. These are 2 different types of forms. For Adobe forms you need an ADS which sits on the java stack and needs to be configured properly. Some services need to be activated in SICF for the configuration as well. A conplete guide on how to configure the ADS is found on the following link
    [https://www.sdn.sap.com/irj/sdn/adobe?rid=/webcontent/uuid/90355269-4d89-2a10-0bb9-f388704f1dcd]
    Regards
    Thashin

  • RemoteMartException exception while saving generated Excel file

    I am getting RemoteMartException exception while saving generated Excel report in our production system. We are using Brio query and classes in sqrib package to create an excel file.
    We did NOT make any changes in the application code recently, suddenly this problem started coming, We also observed that only limited number of users are affected. For other no issues.
    Is there any change in directory properties such as “owner” would result in this behavior? How to find out the location of user directories where the reports are getting stored?
    ####<Apr 23, 2008 1:28:28 PM EDT> <Error> <AvisInteractive> <e2psavcinweb01> <AIProdSvr01> <Thread-23> <<anonymous>> <> <000000> <QueryRunner
    com.oneanswer.avisinteractive.exceptions.AvisInteractiveException: Failed to save file to user directory
         at com.oneanswer.avisinteractive.dod.queryrun.QueryRunner.saveExcelToUserDirectory(QueryRunner.java:279)
         at com.oneanswer.avisinteractive.dod.queryrun.QueryRunner.run(QueryRunner.java:169)
         at com.oneanswer.avisinteractive.threads.ThreadPool$WorkerThread.run(ThreadPool.java:174)
    Caused by: com.sqribe.rm.ReportMartException: 1000095
         at com.sqribe.rm.SessionImpl.submit(Unknown Source)
         at com.sqribe.rm.ReportMartEntityImpl.update(Unknown Source)
         at com.sqribe.rm.VersionedObjectImpl.update(Unknown Source)
         at com.oneanswer.utils.hpsutils.HPSCategoryHelper.saveFileToCategory(HPSCategoryHelper.java:115)
         at com.oneanswer.avisinteractive.dod.queryrun.QueryRunner.saveExcelToUserDirectory(QueryRunner.java:266)
         ... 2 more
    >

    Ensure that you have not opened any excel file or text file with similar name.
    thanks
    G. Lakshmipathi

Maybe you are looking for

  • Another Mavericks Random Restart issue...

    I've seen lots of discussions about these issues, but nothing definitive that will simply fix our problems. For the last month I've been trying the various suggestions offered on these forums: turning off the Energy Saver stuff, auto logging in, etc,

  • Music and photos transferred into itunes and iphoto from external hard drive on to my new hard drive installed in my 2007 macbook

    I just installed a new 250 GB SATA hard drive on to my 2007 macbook computer as the old one failed.  I had backed up my old hard drive on to a 250 GB external hard drive using time machine via a USB cord.  I am having trouble locating my music and ph

  • Count = variable date format

    I've got a form where the action="page.php" When on this page, I also have a recordset that counts the rows that have the same date variable called from the $_POST. the recordset name = datedal variable type = date Default value = 0 Runtime value = $

  • Approval process in KM

    Hi Experts, I need to create an approval process for km documents. if any changes are deletions of the document the author should get a notification. how can this can be done please explain the process in detail. also i to get the notification what r

  • Quicktime embed not showing controls

    I have several embedded quicktime movies on my website, for some reason they do not show the controls even though the embed and object tags specifically say to controller=true. Is this a factor of the file itself, what is the fix?