Excel report preview
Hi,
I am using Report Generation Tool kit for my Excel Report, I want to give the Print Option to User, before printing the documents the user likes to see the Preview of the document(as option in Excel and Other Application), Is there a possibility to generate a preview of the excel report before printing it? Please give me the solution if any one have.
regards,
Suresh
Applications Engineer
Suresh,
The key to displaying the print preview screen is in ActiveX just like Darren said. I wrote a quick program that opens an ActiveX reference to an excel file and then shows the print preview.
I hope this helps,
Justin D.
Applications Engineer
National Instruments
Attachments:
Excel Example.zip 132 KB
Similar Messages
-
Report previewer in MDI sheet?
Hello,
I am working with forms 6i as MDI window
and I'm traying to run report previewer.
It should look like MS Word print preview.
Is it posible to run report 6i previewer
as MDI sheet component in MDI frame?
Thanks in advance,
RolandHi
You would be able to download the report to an Excel Sheet.
If you are using standard ABAP List then all you have to do is List->Save->File->Choose Spreadsheet as option
If for ALV
Please check this link
https://forums.sdn.sap.com/click.jspa?searchID=255077&messageID=2410067 -
My application will not open or create an Excel report.
When I run the vi in LabView, it runs fine, and It will open Excel and/or save an Excel report depending on what I select on the express vi for report generation. After I build it with application builder, it runs like normal and displays the resulst on the front panel, but it does not open Excel or save an Excel file for a report. I get an error 7 and the source is listed as "New Report.vi -> subMS Office Report Block.vi -> MS Office Report.vi -> sound.vi" where sound.vi is my top level vi. I have added the _excel dynamicvis.vi and _word dynamicvis.vi as dynamic vi's and I've added _excelsub.llb and _wordsub.llb as support files. I searched for the new report.vi and added the library it was in as a support file. I have saved sound.vi as a library and included vi.lib files, external subroutines, and run-time menus, and I used this version of the sound.vi and added sound.llb as a support file. Is there anything else I'm forgetting?
Hello mwallace,
The behavior you are seeing is probably due to one of the VIs being added as a support file instead of a dynamic VI. When adding a file as a dynamic VI, Application builder will ensure that all subVIs are included.
The following knowledgebase examples this issue in some more detail.
Error 7 When Building Applications and DLLs That Use the LabVIEW Report Generation Toolkit
Please let me know if you have any questions.
Regards,
Matt F
Keep up to date on the latest PXI news at twitter.com/pxi -
Error while opening Excel report using servlet
Hi
I am using a servlet to open an excel report which has multiple sheets . But there is a weird problem when i try to open an excel report with two sheets having the same name .
Generally when an excel with same sheet names is opened with Microsoft excel , it will open the excel file with a dialog showing error .
But when i am trying to open through a servlet after that open/save dialog box comes , its sending two requests and that too the second one from another browser . How i am saying that its sending from another browser is , during the second time its not passing the session checks which i placed .....I mean the session for the request doesn't have any data while it was expected to have some data which i placed in Session while logging in .
Can any one let me know why this is happening ?/Refer Note:280376.1 on MetaLink. Hope this will help you resolve the issue.
Thanks
Shail -
Error while opening excel report
Hi,
While opening the excel report i am getting the below error.
REP-51026: No output for job 8923
Note: We have deployed the report in 10g Oracle Reports server present in a UNIX m/c.
Please let me know what i have to do.
Thanks & Regards,
Sudhaharan.
Message was edited by:
jsudhaharanRefer Note:280376.1 on MetaLink. Hope this will help you resolve the issue.
Thanks
Shail -
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,
PadmanabanHi Padman,
Pls. install JVM on you local machine..
Regards
Pramod -
Visual Studio 2008 Crashes when I click on the [Main Report Preview] button
I started with Crystal Reports Basic that is bundled with Visual Studio, and then downloaded and installed the free trial of Crystal Reports Developer 2008, and the Visual Studio Integration Manager, the issue has not been affected.
After adding a crystal report to the project and using the wizard to set it up, and adding a Crystal Reports Viewer to a form I encountered these two (perhaps related) problems.
1) When I click on the [Main Report Preview] button at the bottom of the report editor for Visual Studio crashes without any error message and needs to be restarted.
2) When I set the viewer Report Source property to the report via the drop down the following error occurs:
a. u201CUnable to find the report in the manifest resources. Please build the project and try again.u201D
b. Building the project has no affect and the same error reoccurs repeatedly.The original version of CR 2008 did not work with .NET 2008. If your version is 12.0.0.549, you need to apply SP0:
https://smpdl.sap-ag.de/~sapidp/012002523100007528552008E/cr2008_sp0.zip
then I'd highly recommend SP 3:
https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
If your version is higher than 12.0.0.549, apply SP3 and try again.
Ludek
Follow us on Twitter http://twitter.com/SAPCRNetSup -
How to Display Excel Report in Client machine in Forms11g
Hi All,
we are running database in Linux server and separate Linux Application Server , But my question is how to display the data to Excel Report in the Client machine
in Forms11g applications.
Plesase suggest any method.
Regards
Venkatesulu GunisettyYou should use webutils.
For proper answer, place ur request here in oracle Forms Thread,
Forms -
My excel report is not working in executable file ,however,it works well in vi
Hi all ,
Could any one please help me in getting the reason behind the executable file not working for excel report generation,however I can get the same function without any problem in main vi.
I am attaching my code and executable file also ,please have a look into it and let me know where I am wrong.
Thanks & Regards !
sarita
Message Edited by MindPower on 10-24-2007 01:40 AM
Message Edited by MindPower on 10-24-2007 01:43 AM
Attachments:
test datalog.vi 264 KB
test datalog-NEW.zip 1020 KBI can't open the vi in the moment. But by your description I think that I know the solution.
When you build the executable you've to add dinammically the vi's from report generator that aren't in your main vi hierarchy. So, you've to open the vi's and find those that are open trough "open vi reference" and add them dinamicaly.
And don't know if these tips are enough.
From NI Zvezdana S.
"When you use the Report Generation Toolkit to build a stand-alone application with the Application Builder, you must add _Word Dynamic VIs.vi from _wordsub.llb and _Excel Dynamic VIs.vi from _exclsub.llb as dynamic VIs. These two VIs contain subVIs that are called dynamically by the high-level Report Generation VIs. I believe that if you grab these VIs from the (desired office version part of the) installation CD instead of from the development machine, then everything should work. "
Software developer
www.mcm-electronics.com
PS: Don't forget to rate a good anwser ; )
Currently using Labview 2011
PORTUGAL -
Report generation Toolkit: Excel report functions error -2146827284
Hi,
I'm trying to create an automated report using excel functions from the report generation toolkit in labVIEW. When I run the program that generates the report first time round (the report consists of several worksheets, each worksheet is added onto the report at a diffferent state in a state machine) it always works fine and no error is generated. However, when I run the program again it will infrequently (sometimes it does, other times it will not) generate the undefined error -2146827284, this is coming from one of the excel report functions and it cannot find it on highlight execution mode.
Does anyone know anything about this error, why it occurs, how to prevent it?
I would appreciate any help.
Thanks,
Rowanmebels_cti wrote:
Found something that helped; https://forums.ni.com/t5/LabVIEW/Error-code-quot-2146827284-quot-when-trying-to-open-an-Excel/m-p/20...
Excel still open
So I added this;
You should use the Application Quit method instead of killing the task. I doubt this is the cause of your issue.
Ben64 -
Cannot save the excel report in my application
Hi I wrote a program which can save the data to an Excel report. It runs perfectly on my own computer. After I built the application (exe file), and run it in another computer, which can not save the excel report. On my own computer, it has LabVIEW 2011 and report generation toolkit for Microsoftoffice; and on the other computer, I installed the LabVIEW runtime engine. Did I miss installing some other support software? Can anyone tell me why this is not working?
Thanks a lot,
JaneDo you have Excel installed on the other computer?
I also suggest that you read this page : Including Report Generation VIs in Stand-Alone Applications (Report Generation Toolkit)
Hope this helps
When my feet touch the ground each morning the devil thinks "bloody hell... He's up again!" -
Hi,
Does anyone have experienced (and solved) this behaviour?
I've been using the report generation toolkit to build word report without
problem. I've also solved a lot of problems in the excel part of the toolkit
(e.g. building graphs with >20000 points). It finally works in development
environment.
Now when I install the executable (, with the installer) the word reports
still work, but the excel report don't. The executable does run on a
different system, but the excel versions are the same (both Excel 2000).
I have copied the excel library in the data directory of the executable.
The following error is generated:
-2147319784
Old format or invalid type library
Excel_Open.vi
This is the first report generation vi that is called. I us
e it to open a
template.
Any help is appreciated.
Wiebe.Hi,
Surfing the internet, I found this comment:
*Start quote*
Sometimes you'll find that a parameter is required that isn't mentioned
anywhere in the application's documentation. This happens when you need to
specify system information: the chief example of this is the lcid, which is
a locale identifier, and which pops up all over the place in Excel. The good
news is that there is a constant in the Windows unit which provides you with
the correct value, LOCALE_USER_DEFAULT:
var
lcid: integer;
begin
lcid := LOCALE_USER_DEFAULT;
Excel.Visible[lcid] := True;
There's also a function, GetUserDefaultLCID, but using that value can cause
an error, complaining about an 'old format or invalid type library' on some
setups. Using LOCALE_USER_DEFAULT for the
LCID value should fix that.
*End quote*
Could this be the problem?
Regards,
Wiebe.
"Wiebe@AIR" wrote in message
news:3e79a3aa$0$140$[email protected]..
> Hi,
>
> Does anyone have experienced (and solved) this behaviour?
>
> I've been using the report generation toolkit to build word report without
> problem. I've also solved a lot of problems in the excel part of the
toolkit
> (e.g. building graphs with >20000 points). It finally works in development
> environment.
>
> Now when I install the executable (, with the installer) the word reports
> still work, but the excel report don't. The executable does run on a
> different system, but the excel versions are the same (both Excel 2000).
>
> I have copied the excel library in the data directory of the executable.
>
> The following error is generated:
>
> -2147319784
> Old format or invalid type library
> Excel_Open.vi
>
> This is the first report generation vi that is called. I use it to open a
> temp
late.
>
> Any help is appreciated.
>
> Wiebe.
>
> -
Hello,
I am looking for a simple solution to this simple problem:
I have generated an excel data file using LabVIEW Report Generation Toolkit for Microsoft Office ( see diagram below ).
Now I would like to add data to this worksheet every time I run this VI ( data must expand in column format instead of
row) but i have no Idea how to do it .
I would appreciate any help.
Thanks
Attachments:
Excel Report.jpg 59 KBThat's what the start input is for. You tell it where to insert the cells.
Asides:
Why aren't you wiring the error out from the new report function to the next function?
Do not autoindex an array and wire a value to N. Do one or the other, not both. If you do both the loop will run for whichever value (N, or the array size) is smaller.
Your loop with the function node can be simplified by replacing it with a single Divide function and feeding the Divide function the arrays directly. The numeric functions (as well as many other functions) are polymorphic.
To learn more about LabVIEW it is recommended that you go through the introduction material, tutorial(s), and other material in the NI Developer Zone's Learning Center which provides links to other materials and other tutorials. You can also take the online courses for free. -
Excel report generation does not exit excel
I am using the excel report generator to save test reports. I can create the report using a template and write to it when needed with no problems. After every test step I add data and save the report. I keep excel closed by using the no change setting for the window state. I do not want the user to see excel or even know it is there.
The issue is when I am done testing and use the dispose report vi, it leaves an instance of excel open that you can see in the task manager. And the only way to close that instance is to open one of the files that was created and close it and then exit excel. The memory used by that instance grows a little each time a new file is created.
Labview 2011 SP1 (11.0.1.F2 32bit)
Excel 2007
How can I close excel completely after each test?
Solved!
Go to Solution.
Attachments:
Report Example.png 52 KBI find it very hard to believe that this function isn't somewhere in the report generation toolkit. But my 30 second look for it came up with nothing. So instead I wrote a function that does a task kill for you. Keep in mind this only works in Windows, and this will do the same thing as a end task in Taskmanager so only use it when you are sure your are done saving all reporting. Saved in 2011.
Unofficial Forum Rules and Guidelines - Hooovahh - LabVIEW Overlord
If 10 out of 10 experts in any field say something is bad, you should probably take their opinion seriously.
Attachments:
Taskkill Excel Report.vi 22 KB -
Hello,
I have a test application that uses MS Excel Report toolkit to print the test results using a custom template file. When I try to print the test results I get the following error -2146959355 (see attached picture). Any idea what triggers this? It seems that is generated by Excel Active X control. I also attach the Vi I use to print the test results as well as the templates
Thank You
Nick
Solved!
Go to Solution.
Attachments:
Error -2146959355.jpg 1692 KB
Thales Report generation v2.0.vi 47 KB
EU_Report_template.xlt 40 KBlook at this
http://digital.ni.com/public.nsf/allkb/1C025F018CB5761686256C56007DD258
http://digital.ni.com/public.nsf/allkb/83211E3A088D0C3786256DB700621FE8
Maybe you are looking for
-
ITunes won't open, even after complete uninstall/reinstall of iTunes/Qktime
Hello This morning iTunes started refusing to open. When opened it bounces twice and then closes. Strange, because I didn;t just update. It worked fine after my last update and up until the present. I'm not sure but it could have started happening af
-
Unable to Switch Audio Sync Settings
Hey everyone, I'm trying to create an animation based off of a 5-minute mp3 audio recording. I need to be able to switch my audio sync settings to Stream so that I can preview audio anywhere in my animation. Currently if I press play just anywhere in
-
App switching on Mac with more than one InDesign window open
I wonder if this happens to everyone or if it's something with my set-up--to be precise, having Spaces active. In OS 10.6.8, if I have more than one InDesign document open and I switch to another application using command-tab, when I switch back to I
-
Problem with USB drive not writing/freezing on unmount.
I have a sandisk cruzer blade USB drive, which I have used for the past hours extensively. At one point, I couldn't manage to write data to it. It acted like it had, but it didn't, as it silently remounted as readonly. I solved this by remounting as
-
Ps cs4 keeps crashing when opening files..
ive never had this problem before, my system is freshly formatted and ps is acting up.. here is the error report: Problem Event Name: APPCRASH Application Name: Photoshop.exe Application Version: 11.0.2.0 Application Timestamp: 4bf2d91c Fau