Report Generation Help

First, thanks for reading this.
Secondly, I need help in creating a PL/SQL report which will be the datasource for a Crystal Reports template. I need to create a login report based on 3 tables holding user data, (login_table, user_table, user_region_table). I have no problem creating the SQL to show the users by region logging into the system for any given month based on the 3 above tables.
What I need help with is using "connect by" and "group by" to faciliate how the report is viewed.
login_table holds user_id and date they logged into system
user_table holds user_id and region_id data
user_region_table holds region_name
SELECT MonthYear, region_name, Visits
FROM (
SELECT
TO_CHAR (TO_DATE (lg.login_time, 'dd-Mon-yy'), 'Month yyyy') AS MonthYear,
r.region_name,
r.region_id,
r.parent_id,
COUNT (*) Logins
FROM logging lg
INNER JOIN users u ON (u.user_id = ipl.user_id)
INNER JOIN region r ON (r.region_id = u.region_id)
WHERE lg.login_time BETWEEN TO_DATE ('10/01/2010 00:00:00', 'mm/dd/yyyy hh24:mi:ss')
AND TO_DATE ('09/30/2011 23:59:59', 'mm/dd/yyyy hh24:mi:ss')
AND r.region_id NOT IN (0, -1)
GROUP BY r.region_name,
r.region_id,
r.parent_id,
TO_CHAR (TO_DATE (lg.login_time, 'dd-Mon-yy'), 'Month yyyy')
ORDER BY TO_DATE(MonthYear, 'Month yyyy') DESC, r.parent_id, r.region_name
This correctly displays the data I need, but I need it shown like:
Date Region_Name Logins
Oct 2011 Master Region Name 1 #
Sub Region Name #
Sub Region Name #
Master Region Name 2 #
Sub Region Name #
Sub Region Name #
Sept 2011 Master Region Name 1 #
Sub Region Name #
Sub Region Name #
Master Region Name 2 #
Sub Region Name #
Sub Region Name #
Any help will be greatly appreciated.

If you have the report generation kit installed
then just search examples in labview help.
Attached vi is from example ( NB all sub vi are in NI labview .llb)
IF RGK is not installed then can't run, vi terminal will default to either Report or HTML  you will not have opportunity to
select word or excel format.
Chow
xseadog
Attachments:
Sample Report (Word).vi ‏95 KB

Similar Messages

  • I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 profession​al. The create new report VI opens Excel but throws error (-21471672​62- from automation open VI) when I try to open MS word. please help...

    I am using report generation toolkit 1.1 with Labview 7.0 and Office 2003 professional. The create new report VI opens Excel but throws error (-2147167262- from automation open VI) when I try to open MS word. please help...

    Hi Leo22,
    Does this error occur if you use any of the example programs that come shipped with LabVIEW? I would try opening one of the examples that write data to Word and see if those give you an error. Also, have you tried just putting down a New Report.VI and change the report type to Word? If this simple vi (that's all you need to open Word) breaks, I would check to see if there are any instances of Word still open. Check the task manager to see if any word processes are still open. There should not be a problem accessing Word 2003 from LabVIEW 7.0. If neither of these solutions work, please give some more detail about your application and we can research further. Thanks!
    Jeremy L.
    National Instruments
    Jeremy L.
    National Instruments

  • Need help with report generation toolkit

    I'm having a really hard time finding a solution for my problem. I'm measuring a distance and a diameter simultaneously. The outcoming values have a depency and are stored in a 2-D array.  I want to export this array to an excel table and x-y-chart (distance is x and diameter y). So far I can export the data to a table, however the charts produced are useless. Can somebody please help me? I'm almost crying since I'm trying to find a solution for 3 days now.
    Additionally, after one measurement is done, the user should have the possibility to do the next measurement, and the data has to be stored in the same excel file, in another worksheet. How can I do this? 
    Attachments:
    Hauptprogramm_0.5.vi ‏129 KB

    Hi!
    If you want a nice graph in Excel based on your data you have input there, I would recommend creating a macro that builds your graph. Read more about macro, Excel and LabVIEW here. I don't have the Report Generation toolkit, but I think you can send macros with it too. 
    Regards,
    Even
    Certified LabVIEW Associate Developer
    Automated Test Developer
    Topro AS
    Norway

  • Help needed for report generation using java technologies

    May i get some idea about report generation api available. some report generation tools that can be downloadble. can you please suggest how to use scheduling the printers or report generation by scheduling.

    e.g. for one of my school project which generate reconciliation report (banking project) we add in a letterheader and the rest of the information presented below.
    but there is some problem here.
    either you "catch" no. x row where the printing will be trancated then prevented it from trancated by formatting your pages such that data will not be printed in that region.

  • Report generation toolkit and signal express user step : problem of closing reference in "Stop" event

    Hi all,
    I'm trying to make a package of Vis to easily make Excel reports with Signal Express. I'm working on LabVIEW 8.2.1.
    I'm using the report generation toolkit, so I build a .llb from my project which contains all the hierarchy of my steps, but also the hierarchy of dynamic VIs called.
    I have made some steps, like "Open Workbook", "Write Data", etc.
    My steps run well, excepts one step : "Close Workbook".
    If my "Close Workbook" step is firing on "Run" Signal Express event, I have no error, so my reference is properly closed.
    But if my "Close Workbook" step is firing on "Stop" Signal Express event, I have an error "1", from "Generate Report Objectrepository.vi".
    I feel that I'm trying to use a reference which has been killed in the "Stop" step...
    I would like to know what exactly do Signal Express on "Stop" event and why my close function does'nt run well.
    Thanks,
    Callahan

    Hi Callahan,
    SignalExpress (SE for short) does the following on the Stop event:
    1. Takes the list of parameters that SE found on your VI's connector pane, and sets the values that the user set from the "Run LabVIEW VI" configuration page, if any.
    2. Then tells the VI that SE is running the Stop event by setting the Enum found on your VI's front panel. This in turn should produce some boolean values telling your VI to execute the Stop case.
    3. The VI is then run, with those values and states.
    4. SE checks to see if any errors where returned.
    5. Since this is the Stop event, SE releases the reference to the VI which it possesses.
    Questions for you would be, is the reference to your Workbook linked to a control on your connector pane, or held in a uninitialized Shift Register. If it's held in a Shift Register, SE would not be aware of it, and would not be able to affect that reference.
    Hope that helps. Feel free to post your LLB if it doesn't.
    Phil

  • Report Generation Exe Error

    Hello,
     I am using LV 8.6.1 with the 1.13 report generation toolkit and I am having problems getting my built exe to work.  I am trying to open an excel template and populate it with new data.  I have broke the vi down to just opening excel - opening the template and then fill in some data.  But at this point excel does not open at all.  And naturally everything works fine in the development environment.
    Error Code: -2147352573
    Member not found in NI_ReportgenerationToolkit.lvlib:
    Excel_open_workbook.vi
    NI_Excel.lvclass: new reportsubvi.vi
    I read a few help pages that said to add \vi.lib\utility\NIreport.llb and LVclass directories to the project folder and add them to the always include section of the build.  But no luck so far.
    Side question:  The machine I want to use this on has 8.6.1 Full which does not have the extra excel functions that my developer has.  Is there a way to install the DEV report generation toolkit in the full version?  Then I would not need to build an exe.
    UPDATE:  I just tried the exe on a different machine that has a developer suite installed and it worked fine.  So I guess I need to find out what else I need to add to the build to make it work.
    Message Edited by _Bryan on 06-16-2010 11:58 AM
    Solved!
    Go to Solution.

    There should be some info on this in the KB.
    But first you should make sure that your version of the report generation toolkit actually supports excel 2000 (which is 10 years old)
    That should be in the release notes of the toolkit
    Ton
    Free Code Capture Tool! Version 2.1.3 with comments, web-upload, back-save and snippets!
    Nederlandse LabVIEW user groep www.lvug.nl
    My LabVIEW Ideas
    LabVIEW, programming like it should be!

  • Report-generation vi problem

    On a Windows XP system using the "Text Report Example" vi, the (read) report property node item "TextFont" (stdole.Font) at the beginning of the "Font Style" vi which is a part of the "Set Report Font" vi is returning this error:
    "-1073741819 Unknown System Error in Font Style.vi->Set Report Font.vi->Easy Text Report.vi"
    Any suggestions as to a cause and cure?

    This Knowledge Base from NI's website actually deals with this problem. The fix depends upon whether or not you have the Report Generation Toolkit for LabVIEW. There are fixes for whether or not you have the Toolkit. Hope this helps.
    J.R. Allen

  • Report Generation for Excel does not work after using the Application Builder

    I have a VI that writes data to an Excel file using the Report Generation Toolkit. I recently compiled the VI into a single Application (EXE) using the Application Builder. My VI runs its tests properly, but no data is written to Excel. What could be the cause? I don't receive any error messages.

    Hi
    I usually build exe-files, which sometimes also have report functionality.
    Open the Application Builder and check the following things:
    1. Add the following vis: _Word Dynamic VIs.vi, _Excel Dynamic VIs.vi They should be located in the directory ..\LabVIEW X.X\vi.lib\addons\_office in the llbs _wordsub.llb and _exclsub.llb (report1.jpg)
    2. If you use an Installer, go to the Advanced Settings. There you can select some things to include in the Installer. Check if "NI Reports Support" is selected. (report2.jpg)
    These are the things I always do, if I need reports and I never had problems up to now. I made two screen-shots of these settings.
    Hope this helps.
    Thomas
    Using LV8.0
    Don't be afraid to rate a good answer...
    Attachments:
    report.zip ‏25 KB

  • Report generation for FPGA VI

    Hello..
                  I want to include the number of resources used by FPGA (LUTs, slices, blockrams etc) in my report generation. 
    After compilation is completed, a window showing these resources will occur. But, how can I add this compilation report in my report generation...
    Please let me know..
    Thanks
    Prashanth
    Solved!
    Go to Solution.

    Hi
    I made a small code which helps you achieve this functionality.
    Hope it helps!
    In this code: I read from "toplevel_gen_xst.log" file generated for the project; search for the string "Device utilization summary" and extract the part of interest Now you add this extract to your report compiled using report generation toolkit.
    regards,
    Ravi.
    Attachments:
    image.jpg ‏60 KB
    FPGA Utilization.vi ‏10 KB

  • Is ms office 2013 supported for report generation​? Error 41106

    Hi
    I have a copy of LV full development suite with the Excel and Word report generation toolkit added.
    I have recently changed to using Office 365 that includes offline versions of Excel and Word from Office '13.
    When using the report generation toolkit, I get an error 41106.
    I have reinstalled the toolkit - no effect.
    I sort of assume therefore that office 2013 is not supported?
    Any hints, tips, patches or workarounds please.
    Bill

    Bill_Shepherd wrote:
    Hi
    I have a copy of LV full development suite with the Excel and Word report generation toolkit added.
    I have recently changed to using Office 365 that includes offline versions of Excel and Word from Office '13.
    When using the report generation toolkit, I get an error 41106.
    I have reinstalled the toolkit - no effect.
    I sort of assume therefore that office 2013 is not supported?
    Any hints, tips, patches or workarounds please.
    Bill
    I've seen some issues when I upgraded to Office 2010. Note that it is possible that the route cause of your problem is totally different but in my case there was some ActiveX properties or Methods call that have been changed. I solved this issue by navigating to the property/method that caused the error, clicked on it and reselected the same property/method. You could probably find some older post that discuss that. Hope this help.
    Ben64

  • Error 7, report generation toolkits do not work after building.

    Hallo guys:
    one problem. help!
    I tried to build my programs with application builder, unluckly builded exe application does no work well as before, i checked some similar post from this forum, and added that NIReprot.llb in my project and rebuild, the problem still takes place, my program append some text, tables, and charts into a word template with that Report Generation Toolkits, but it always gives out error 7 and 'NI_Word.lvclass:new report subVI.vi -> NI_report.lvclass:New Report.vi -> Creat New Report.vi ->...'error information.
    is there anyone can give me some clues about this annoying problem.
    thanks a lot!!!
    Solved!
    Go to Solution.

    When you say "attached all this library to my project", it is not clear whether you answered the question about including the dynamic VIs in your build specifications. See attached image. You will need to select the files in your project and set them to Always Included. Have you done this?
    Attachments:
    alwaysincluded.JPG ‏46 KB

  • Error in report generation-Load report failed

    I have installed crystal reports  for VS2005 runtime in my live environment.When i try to load the report file from a .Net page i am getting the error'Error in Report generation-Load report failed'.
    This works fine in development and testing but when moved to production we are having issues.
    I believe i have a workaround i.e i need to open the rpt in a VS 2005 environment and re-write the connection string again.This fix had worked in development and testing when we had the same issue.
    But not sure if this is a known issue with crystal reports and if so do we have any hot fixes for the same.
    Please help.

    Hi Don,
    The reason why i posted the item on 'data Connectivity issues' is because i suspect the problem is with the connection string.Though i had provided the correct connection string,re-writing the connection string with the same info might help to fix the issue with loading the report.
    Does it mean that there is a problem in the connectivity?
    I have a risk here that i cant re-write the connection string..i.e to open the RPT file in VS2005 and bind it.The production web server & database server sits in a  third party environment and it is not in the company network.So i cant connect to this server to re-write from any other severs in the network.
    Is there any fix which can applied to the server to get this issue resolved?
    Cheers
    Nithya.

  • Exe giving error for report generation and LV 8.6.1

    I have created and installed a labview application in a PC(windows XP) where labview is not installed.  (already included NI_Excel.lvclass)
    I have used a report(excel) generation to display the results.
    I am getting following error:
    Error Code: -2147352573
    Member not found in NI_Excel.lvclass:
    I am using MS office Excel 2007 SP1
    NI LabVIEW Run-Time Engine:8.6.1.
    Report generation toolkit version:1.1.3
    phani srikanth
    Solved!
    Go to Solution.
    Attachments:
    Error.JPG ‏10 KB

    search the ni website and a 30 day eval copy can be found. For use beyond this period you would have to buy a license (unless you have one of course)
    compatibility can be found on the following link
    http://digital.ni.com/public.nsf/allkb/C9408B9F08D711E786256F3300701D01 
    hope it helps
    TD 
    Please remember to accept any solutions and give kudos, Thanks
    LV 8.6.1, LV2010,LV2011SP1, FPGA, Win7

  • Report Generation tool kit for MS office (Opening an existing excel file and appending to the bottom)

    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.
    todd

    Hi 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

  • Report Generation Toolkit Error

    I  have an application that generates multiple excel spreadsheets each containing a table and four graphs.  This has been working fine for three months but I am now getting error when generating the reports.  The source of the error is in the Excel_create_workbook as indicated on the attached picture.  I am passing in a template name for my excel reports.  The error code (-2147352571) states a type mismatch.  The file path to my template is a constant so I can't see how sometimes I get a type mismatch and other times I don't.
    Any help on this would be greatly appreciated.
    Thank you,
    AJL
    Attachments:
    create_Workbook error.JPG ‏269 KB

    Thanks for the reply, however, this VI is part of the Report Generation Toolkit so I don't want to have to modified NI's code if possible.  I did try your suggestion without saving the VI and I still got the same error. 
    Any other ideas? 
    BTW - I encountered this problem first in an executable but have since seen the error in the development code.
    Does anyone know if there is a limit to how many times you can create an excel document from LabVIEW?  I wouldn't think so but the error seems to happen if I try to create several (more then five usually) documents at a time. 
    Thanks in advance
    AJL

Maybe you are looking for

  • How to export selected columns in a table using expdp of oracle10g

    Hi all.. I have a table with 10 columns and i want to export only 4 columns(selected columns) data using expdp Pl. tell me if we can do this and if yes what is the syntax. Thanks.. Sekhar

  • How could I export FCE project into XML format?

    Hello, I recently decided to upgrade from Final Cut Express to Final Cut Pro X. But I don't seem to be able to export my FCE unfinish projects. That is because FCE  does not export into XML format !!! Does anyone knows how to have FCE to generate a X

  • Having trouble with connecting my guitar.

    Hey guys I just bought logic express 8 wanting to record with my guitars. Im really new to recording and don't know how to record from my instruments. I bought a Griffin instrument guitar jack adapter for my audio-in for my macbook because the apple

  • Desktop Manager hangs during backup

    I´m using DM version 4.7 on Vista (all patches). BB Bold is connected and I start a backup without changing any advanced option. The operation stops after 3 quaters when trying to save "DocsToGoCommonPrefs". A popup says "Unknown error". Any idea on

  • Windows 8 not compatible with FTP connections?

    Ok I researched this for 2 days now and I am a freelancer. This is the only way I can make a living so I really need to fix this issue... On my windows 7 desktop, I can connect with any FTP and be fine. It will connect successfully and never log me o