Consolidate reports to MS Word
Hi,
I would like to merge several heteregenous reports to one single MS Word 2003 document, and to be able to add feataures such as : main title before a report (heading1 style), sub titlebefore a report (heading2 style), table of content, etc ...
The consolidation has to be done programmatically, not by a user, by an application that is able to read and generate documents from "merged reports templates".
As a consequence, RTF format is not an option, because the formating is absolute, and the design is completely messed up when we add titles (or other information).
I also tried HTML but the generated code is awful for a generic integration with Word.
So I came up with the idea to use XML as Report's output in order to generate a Word document in WordML format (new XML-like format in Word 2003) by formatting the XML using a XSL transformation.
Has someone already had this approach ?
Are they any existing tools/tips/tricks to achive what I want to do ?
Thanks in advance.
Tijs,
take a look at the following site :
http://www.sequel.nl/html/sqlword.html
and take a look at the product SQLWord.
A colleague of mine used it for one of our customers and both sides where quite satisfied. Hopefully you are too.
Regards,
Gerard
Similar Messages
-
Download classical report to MS word with OLE
hi experts,
I have a Classical HR Report that contains profile information of the employee.Now I have to Download the Report to Ms word through OLE . I tried some threads but they were just displaying the static text.I have to download the data for the following format.could some one help me on this?
WRITE : 'Salary Information '.
SKIP 1.
WRITE : 1 SY-ULINE(83).
WRITE : /1'|',2 'Period Ending On 31ST',25'|',26'Rating(If Any)',42'|',43'Basic Salary',57'|',58'Gpm',70'|',71'CTC',83'|'.
WRITE : /1 SY-ULINE(83).
CLEAR YEARSAL.CLEAR CURRENT.
CLEAR GROSS.CLEAR GROSS1.CLEAR CTC1.
LOOP AT ISAL INTO WSAL WHERE PERNR = WP01-PERNR AND ENDDA = '99991231' ."AND CURRENT BETWEEN WSAL-BEGDA AND WSAL-ENDDA.
GROSS = WSAL-BET01 + WSAL-BET02 + WSAL-BET03 + WSAL-BET04.
GROSS1 = GROSS.CONDENSE GROSS1.
CTC1 = WSAL-BET10.CONDENSE CTC1.
WRITE : /1'|',2 'Current' ,25'|',26 WSAL-RTEXT,42'|',43 WSAL-BET01 ,57'|',58 GROSS1,70'|',71 CTC1,83'|'.
WRITE : /1 SY-ULINE(83).
ENDLOOP.
"need to download such information as above to ms word
"ole format
CREATE OBJECT gs_word 'WORD.APPLICATION' .
IF sy-subrc NE 0 .
MESSAGE s000(su) WITH 'Error while creating OLE object!'.
LEAVE PROGRAM .
ENDIF .
*--Setting object's visibility property
SET PROPERTY OF gs_word 'Visible' = '1' .
*--Opening a new document
GET PROPERTY OF gs_word 'Documents' = gs_documents .
CALL METHOD OF GS_DOCUMENTS 'ADD' = V_DOCUMENTS.
CALL METHOD OF gs_selection 'TypeText'
EXPORTING
#1 = 'Overview Of The Employee'.
"the output format would be like this .
pernr | year | salary | .......
Edited by: SYED_ibbu on Feb 23, 2011 11:07 AM
Edited by: SYED_ibbu on Feb 24, 2011 5:57 AMhi experts,
i Have to display multiple tables in the word document . i am displaying the first table but when i try to display the second table it is getting displayed inside the first table. When i debugged , i found that that the cursor is still in the first row of the first table even after the first table is displayed and the second table is displayed from that cursor position. How to get the cursor position after the end of the table ie outside the table to the main document.could some one help me on this. Below is the code i have used.
GET PROPERTY OF GS_WORD 'ActiveDocument' = gs_actdoc.
GET PROPERTY OF gs_actdoc 'Tables' = gs_tables .
GET PROPERTY OF gs_selection 'Range' = gs_range .
CALL METHOD OF gs_tables 'Add' = gs_table
EXPORTING
#1 = gs_range
#2 = LINES
#3 = '7'.
GET PROPERTY OF gs_table 'Borders' = gs_table_border .
SET PROPERTY OF gs_table_border 'Enable' = '1' .
GET PROPERTY OF gs_cell 'Range' = gs_range .
SET PROPERTY OF gs_range 'Text' = value .
CALL METHOD OF gs_table 'Cell' = gs_cell
EXPORTING
#1 = P_TABIX1
#2 = CNT.
GET PROPERTY OF GS_WORD 'ActiveDocument' = gs_actdoc1.
GET PROPERTY OF gs_actdoc1 'Tables' = gs_tables1 .
GET PROPERTY OF gs_selection 'Range' = gs_range1 .
CALL METHOD OF gs_tables1 'Add' = gs_table1
EXPORTING
#1 = gs_range1
#2 = '2'
#3 = '4'.
with thanks in advance,
syed
Edited by: SYED_ibbu on Feb 25, 2011 5:39 AM -
SOP report goes into word repaginating
hi
I am facing a word repaginating porblem while opening my SOP report.
I have assigned a DMS doc with doc type SBV to the specification work (it is a word .docx file) . I created the report SOP from the specification work bench and it is in realsed state also. But when I tried to view the released report either from CG54 or report management , the word document that is opening goes into the state of word repaginating . It remains in the same status till i cancel the action. But during this process the system outputs the report template perfectly to the extent of report body but the part where i have assigned the DMS doc show some wierd symbols.
If I try to view the report from 'report from template' functionality in CG02 or from cg42 I get the output of dms document as well along with the report template.
Regards,
AshishHi Ashish,
Here you would not only have to take care of the document type settings of SBV, but also of SBR and SBE.
Document type SBR (not SBV) is used for generating reports for specifications using released report templates and contain expanded specification data. While, SBV is for only defining the report template in which you use symbols of various symbol types to define the layout of your reports. The link between report templates and report generation variants enables you to generate reports (SBR) and final reports (SBE).
Hence, the problem may be of incorrect settings in document types SBR and SBV. Check the document status and workstation application settings of these doc types based on SAP note # 0000995736.
Hope, above solves your problem.
Regards,Pavan -
REPORT OUTPUT IN WORD OR EXCEL
Hi,
I need to convert my report output to word document with a customised logo in the word document. Can anyone please help me out by providing the necessary procedure (step by step process or code in abap).
Thanks and Regards
AKHi Ashok ,
You just copy this Abap code and run it. The output is an excel file .
REPORT ZKUN_FILE6 .
TABLES: USR03,DD02L.
DATA: ZX030L LIKE X030L.
DATA BEGIN OF ZDFIES OCCURS 0.
INCLUDE STRUCTURE DFIES.
DATA END OF ZDFIES.
DATA: BEGIN OF FLDITAB OCCURS 0,
FLDNAME(11) TYPE C,
END OF FLDITAB.
DATA ITABUSR03 LIKE USR03 OCCURS 0 WITH HEADER LINE.
DATA TNAME LIKE DD02L-TABNAME.
SELECT * FROM USR03 INTO TABLE ITABUSR03.
TNAME = 'USR03'.
PERFORM GETFIELEDS.
PERFORM SHOW123.
FORM GETFIELEDS.
CALL FUNCTION 'GET_FIELDTAB'
EXPORTING
LANGU = SY-LANGU
ONLY = SPACE
TABNAME = TNAME
WITHTEXT = 'X'
IMPORTING
HEADER = ZX030L
TABLES
FIELDTAB = ZDFIES
EXCEPTIONS
INTERNAL_ERROR = 01
NO_TEXTS_FOUND = 02
TABLE_HAS_NO_FIELDS = 03
TABLE_NOT_ACTIV = 04.
CASE SY-SUBRC.
WHEN 0.
LOOP AT ZDFIES.
FLDITAB-FLDNAME = ZDFIES-FIELDNAME.
APPEND FLDITAB.
ENDLOOP.
WHEN OTHERS.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
with SY-SUBRC.
ENDCASE.
ENDFORM.
FORM SHOW123.
CALL FUNCTION 'EXCEL_OLE_STANDARD_DAT'
EXPORTING
FILE_NAME = 'C:\USR03.XLS'
DATA_SHEET_NAME = 'USER LIST'
TABLES
DATA_TAB = ITABUSR03
FIELDNAMES = FLDITAB
EXCEPTIONS
FILE_NOT_EXIST = 1
FILENAME_EXPECTED = 2
COMMUNICATION_ERROR = 3
OLE_OBJECT_METHOD_ERROR = 4
OLE_OBJECT_PROPERTY_ERROR = 5
INVALID_FILENAME = 6
INVALID_PIVOT_FIELDS = 7
DOWNLOAD_PROBLEM = 8
OTHERS = 9.
IF SY-SUBRC <> 0.
MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
ENDFORM.
Thanks and Regards,
Kunal.
( hope this solves your problem.) -
The export of a Crystal Reports to MS Word creates big files
Hi all,
if I export a report to pdf the file size is 72 KB . But if I export to Microsoft Word (97-2003) format, the filesize amounts to 1,35 MB.
After I opened the exported document in MS Word and saved it with a new name, the size is only 176 KB.
Is this a common problem? Is it possible to force crystal reports produce a smaller document?
Why does Crystal Reports create such large files?
(Environment: Crystal Reports 2008 SP1)
Regards, TimoHallo Don,
first Iwill tell you, if I do export the Report to MS Word, in the FileDialog, it is only possible to create a *.rtf - File.
Do it act normal?
So due to your suggestion, i replaced an Image in the report (embedded as an OleObject) as a Graphic-JPG-Object.
The size of the exported report has reduced from 1,39 MB to 141 KB.
Thanks a lot!
Timo -
Export standard and Custom report to xls / word / power point ??
Hi
Apps: 12.1.3
DB 11gR1
Is there any tool so that i can save standard and Custom report to xls / word / power point ??
Thanks
VishwaThere are a few third party tools that let you do that.
Some such tools are Monarch, Rep2excel etc.
Google for "convert oracle report to excel" and you will get a few more hits.
The best way to get it in Excel is to change the output format to XML and write a quick XML publisher template.
Hope this helps
Sandeep Gandhi
Independent Consultant -
Report Viewer 2012 Word Render Margin Problem
Hi all,
I am developing a asp.net web application /w visual studio 2012. I have created some reports with report viewer, and I would like to export those reports to pdf and MS Word format. The pdf output is same as I expected, but the word output is
missing top and bottom margin, it leads we cannot print the header and footer correctly in MS Word, also the repeat header on each page property didn't work too.
If I use report builder 3.0 and try to export the reports to pdf and MS Word format, the problem still exists.
Is anyone has the solution for this issue?
I think its related to sql server reporting services, please let me know if I posted at wrong category.
Thanks,
hkHi hkcheung,
According to your description, you have issues when exporting the report into Microsoft Word file. The margin of header and footer can't be displayed. And the RepeatOnNewPage property is not working. Right?
In Reporting Services, when we export the report into Word file, it will ignore page header and footer height settings. Also Word does not repeat header rows on page two and greater, although you set the
RepeatOnNewPage property of the static header row in a tablix (table, matrix, or list) to
True. For more information, please see the limitations in the link below:
Exporting to Microsoft Word (Report Builder and SSRS)
If you have any question, please feel free to ask.
Best Regards,
Simon Hou -
How to load Report data into Word Doc.
Hi,
I built a couple Oracle reports. However my client wants to load these report into Microsoft word to look the same format as Oracle reports. How can I do it?
Thanks
DaveDave,
have you tried DESFORMAT=RTF (I'm not sure if that is what you want)? This created a rich text format file readable with MS Word.
Gerald Krieger -
How to see the consolidate report of Gl banlance (Group chart of account)
Dear All ,
We have 10 company code ,Each company code we assigned same chart of account.But Consolidate and reporting purpose we created Group chart of account.
Because when i saw the gl account balance ,it showing 10 company code line item for this reason we created Group chart of account created and assigned all gl account in operating chart of account.and group chart of account assigned in operating chart of account.
But now i am not able to see the consolidate report of all company code totals.
Can you guide me where i can see the consolidate report.of all company code trail balance and balance sheet.
Thanks in advance
thanks and Regards
Girish.Hi Javeed,
Thanks for immediate respose.
But when i run f.08 it will show company code wise.But i want to see total balance of all company code so that i created group chart of account.
Is there any method to see the total balance of all company code
OR
Any other method to see all company code total balance.
thanks and regards
Girish -
Report Generation MS-Word always give error
Hi
I am using LV 2012 and MS Office 2010.
I am using report generation toolkit to have a customised output report.
When I specify output format as excel, I am able to get the desired result but when I specify output format as word, it always throws an error. I checked running the NI examples meant to give output in word but they all fail while the excel reports are perfect.
Please find attached an error code for one of the example Sample Report(word).vi
Please suggest the solution.
Regards,
Manbir
Attachments:
error_doc.JPG 20 KBWe need to see the code in order to say "Here is the error" or "Try doing it this way". It also gives us something to try, ourselves. Do you know how to make "snippets", which are .PNG "pictures" of your code that you can simply put into the message using Insert Image? We can then drag this image into a LabVIEW Block Diagram, and voilà, working code!
BS -
Can you open a report in Excel/Word desktop instead of the web pugin?
using run_report_object( and web.show_document,
how or can you get a report to open in the desktop/full version of MS Excel/Word instead of the web plugin versions?
I can get the browser to open a report in pdf with my desktop adobe reader, but not with an rtf or xml/delimited desformat.
Currently I don't pass a mimetype when opening as a pdf, but I do pass one in the url when i am destypes of xml, delimited and rtf,
as this is the only way i have found out how to open the reports in word/excel.
I'm in the process of upgrading from forms 6 client/server to 10g developer suite, so this is my try with a web based system.
Does anyone have any suggestions, or where I should look.
Below I listed my code from a procedure.
the first part of the procedure is alot of converting, but if you skip down to the part between the 2 sets of double lines this fairly standard.
PACKAGE BODY pmc_lib IS
-- Procedure to run the report.
procedure run_reports(v_report_name in varchar2, -- Report Name with or w/o a path.
v_commode in number default synchronous, -- commode
v_execmode in number default runtime, -- execute mode
v_file_sys in number default filesystem, -- dummy
v_param_list in paramlist, -- parameter list
v_show_modes in varchar2 default null) is -- used for testing,
-- if set to anthing but null, the report properties will display
-- on the screen through an alert prior to printing.
v_errorcode number;
v_errortext varchar2(600);
v_initialized boolean := false;
v_prop_reportserver varchar2(200);
v_report_path varchar2(200);
v_user varchar2(100);
v_user_sessionid number;
v_forms_version varchar2(100);
v_default_report_server varchar2(200);
v_default_server_domain_path varchar2(200);
v_connect_string varchar2(3) := get_application_property(connect_string);
v_user_name varchar2(35) := get_application_property(username);
report_id report_object;
reportserverjob varchar2(100);
v_jobid varchar2(100);
rep_status varchar2(100);
v_url varchar2(500);
v_url2 varchar2(500);
v_parameter_value varchar2(100);
v_destype_param_value varchar2(100) := null;
v_desformat_param_value varchar2(100) := null;
v_desname_param_value varchar2(100) := null;
v_value_n number := 0;
v_param_type number := text_parameter;
v_prop_execmode number;
v_prop_commode number;
v_prop_destype number;
v_prop_filename varchar2(200);
v_prop_source_block varchar2(200) := null;
v_prop_query_name varchar2(200) := null;
v_prop_desname varchar2(200) := null;
v_prop_desformat varchar2(200) := null;
v_prop_reportserver varchar2(200) := null;
v_prop_other varchar2(200) := null;
v_mimetype varchar2(200) := null;
v_selected_mimetype varchar2(200) := null;
report_not_generated exception;
report_id_not_found exception;
BEGIN
v_forms_version := get_application_property(version);
v_prop_reportserver := get_report_object_property('report1', report_server);
v_report_path := null;
v_user := v_user_name || '/' ||
get_application_property(password) || '@' ||
v_connect_string;
if v_connect_string = 'NNN' then
v_default_server_domain_path := 'pmcoracapp01.aapmc.com/reports/rwservlet';
v_default_report_server := 'rep_pmcoracapp01_frhome1';
else
v_default_server_domain_path := 'oradevsrv.aapmc.com/reports/rwservlet';
v_default_report_server := 'rep_oradevsrv_frhome1';
end if;
v_initialized := true;
-- Check to see what version of forms is running.
if substr(v_forms_version, 1, 1) <> '6' then
-- Check to see if WEB version is running
-- This may be an unnecessary check.
if (get_application_property(user_interface) = 'WEB') then
report_id := find_report_object('report1');
-- id_null won't work on a report_id in Version 6, may put back in 10g once version 6 is gone completly
-- if id_null(report_id) then
-- raise report_id_not_found;
-- end if;
-- Because of Convertions from old system the following are needed.
-- 1) If 'execmode' is runtime, then change it to batch.
if v_execmode = runtime then
v_prop_execmode := batch;
else
v_prop_execmode := v_execmode;
end if;
-- 2) If Report name has an attached path, then remove it.
v_value_n := instr(lower(v_report_name), 'k:\pmc\new\');
if v_value_n = 0 then
v_prop_filename := v_report_name;
else
v_prop_filename := substr(v_report_name, v_value_n + 11);
end if;
-- From looking at the FORMS, 'destype' parameter is always passed in from the FORM.
-- It is either 'preview' or 'file'.
-- This is here for the converstion from Forms 6 to 10g.
-- If for some reason destype has not been passed in as a parameter, you will get a FORM error,
-- saying the parameter does not exists.
begin
-- 3) If 'destype' is one of the following, then change it to cache.
get_parameter_attr(v_param_list, 'destype', v_param_type, v_destype_param_value);
if lower(nvl(v_destype_param_value, 'null')) in ('preview', 'file', 'null') then
v_prop_destype := cache;
-- 3a) If 'destype' was = 'file' then check the 'desformat' and 'desname'.
if lower(nvl(v_destype_param_value, 'null')) = 'file' then
-- 3b) Get 'desformat' value
get_parameter_attr(v_param_list, 'desformat', v_param_type, v_desformat_param_value);
-- 'delimited' was not working, so change all 'delimited' to 'delimiteddata'.
if lower(nvl(v_desformat_param_value, 'null')) = 'delimited' then
v_desformat_param_value := 'delimiteddata';
end if;
-- 3c) If 'desformat' is NOT one of the following, then change it to pdf.
if lower(nvl(v_desformat_param_value, 'null')) not in ('pdf', 'xml', 'rtf', 'delimiteddata') then
v_prop_desformat := 'pdf';
else
v_prop_desformat := lower(v_desformat_param_value);
end if;
-- 4) Get 'desname' property.
get_parameter_attr(v_param_list, 'desname', v_param_type, v_desname_param_value);
v_prop_desname := lower(v_desname_param_value);
end if;
else
v_prop_destype := lower(v_destype_param_value);
end if;
exception
when others then
null;
end;
-- If a desformat is rtf, xml, or delimited then get a mimetype to pass to the url
if lower(v_prop_desformat) = 'rtf' then
v_mimetype := '&mimetype=application/msword';
elsif lower(v_prop_desformat) = 'xml' then
v_mimetype := '&mimetype=application/vnd.ms-excel';
elsif lower(v_prop_desformat) = 'delimiteddata' then
v_mimetype := '&mimetype=application/vnd.ms-excel';
end if;
-- 6) If the Following are not set within the Report Object then
-- set them to the following defaults.
-- These are al required to be set for the Report Object to Function.
-- These are the defaults for AAPMC.
v_prop_execmode := nvl(v_prop_execmode, batch);
v_prop_commode := nvl(v_prop_commode, synchronous);
v_prop_destype := nvl(v_prop_destype, cache);
v_prop_desformat := nvl(v_prop_desformat, 'pdf');
v_prop_reportserver := nvl(v_prop_reportserver, v_default_report_server);
-- Set All Report_Object Properties
set_report_object_property(report_id, report_execution_mode, v_prop_execmode);
set_report_object_property(report_id, report_comm_mode, v_commode);
set_report_object_property(report_id, report_destype, v_prop_destype);
set_report_object_property(report_id, report_filename, v_prop_filename);
set_report_object_property(report_id, report_source_block, v_prop_source_block);
set_report_object_property(report_id, report_query_name, v_prop_query_name);
set_report_object_property(report_id, report_desname, v_prop_desname);
set_report_object_property(report_id, report_desformat, v_prop_desformat);
set_report_object_property(report_id, report_server, v_prop_reportserver);
set_report_object_property(report_id, report_other, v_prop_other);
-- Run Report_Object
reportserverjob := run_report_object(report_id, v_param_list);
v_jobid := substr(reportserverjob, length(v_prop_reportserver) + 2, length(reportserverjob));
-- If Report Status is not 'FINISHED', then loop till it is.
if reportserverjob is not null then
rep_status := report_object_status(reportserverjob);
while rep_status in ('RUNNING', 'OPENING_REPORT', 'ENQUEUED') loop
rep_status := report_object_status(reportserverjob);
end loop;
if rep_status <> 'FINISHED' then
raise report_not_generated;
end if;
-- Create 1st part of url.
v_url := 'http://' || v_default_server_domain_path || '/getjobid' || v_jobid || '?server=' || v_prop_reportserver;
-- Check for mimetype.
if v_mimetype is not null then
v_url := v_url || v_mimetype;
end if;
-- Final part of url.
v_url2 := 'javascript:window.open("' || v_url || '", "", "fullscreen=no, titlebar=no, location=no, toolbar=no, menubar=no, status=no, resizable=yes"); self.close()';
-- This is the built-in that calls a new browser window
web.show_document(v_url2,'_blank');
else
raise report_not_generated;
end if;
end if;
-- Destroy the parameter list.
destroy_parameter_list(v_param_list);
else
-- This section if for Client Server, Version 6 of forms.
-- It will do the same as before the conversion.
-- It is only used before the complete conversion.
if v_report_name is null then
return;
end if;
v_value_n := instr(v_report_name, 'k:\pmc\new\');
if v_value_n = 0 then
v_prop_filename := 'k:\pmc\new\' || v_report_name;
else
v_prop_filename := v_report_name;
end if;
run_product(reports,
v_prop_filename,
v_commode,
v_execmode,
filesystem,
v_param_list,
null);
end if;
-- create history record of the report being run
insert into pmc_report_history values(
s_pmc_report_history.nextval,
v_prop_filename,
v_user_name,
sysdate,
v_forms_version,
v_jobid,
v_destype_param_value,
v_desformat_param_value,
v_desname_param_value,
v_prop_destype,
v_prop_desformat,
v_prop_desname,
v_mimetype,
v_window_open_params);
commit;
exception
when report_id_not_found then
show_user_alert('ERROR: Cannot Find Report Object!', null);
when report_not_generated then
show_user_alert('ERROR: Report Not Generated!', null);
when others then
v_errorcode := SQLCODE;
v_errortext := SQLERRM;
show_user_alert('ERROR : ' || v_errorcode || ' = ' || v_errortext, null);
end;
end;What you could try is downloading the report to the client pc using WEBUTIL_FILETRANSFER.URL_TO_CLIENT, then open the locally save file using something like:
CLIENT_HOST('cmd /c rundll32.exe url.dll,FileProtocolHandler "localfilename"'); -
Hi,
I try to generate a report using a template. In my template I use some cross-reference to refer to one bookmark. For exemple in the first page I created a bookmark for my name and in the header I created a cross-reference refer to my name. The problems is when I run my VI the bookmark actualise perfectly but the cross-reference refer to the bookmark can't actualise with the same value and generates an error : "Error! Reference source not found".
Can somebody help me please!
Nki
Solved!
Go to Solution.
Attachments:
01.jpg 72 KBHi,
When i create the word template, the bookmaks and the cross-reference referred to the bookmark update correctely. The problem is when I try to change the bookmark using "report generation from template vi" the bookmark change but not the cross-reference and the error generated is "Error! Reference source not found".
I make coople reasherch and i think they have no solution for this because : "if the text in a heading referred to in a cross-reference is revised, the cross-reference to the heading may no longer work" (http://office.microsoft.com/en-us/word-help/troubleshoot-cross-references-HP005189368.aspx).
To "resolved" this problem I create an other bookmark in the template who have the same value white the principle bookmark.
I use Labview 2011 and Micosoft office 2010. -
Labview 2013 report generation toolkit word 2010 insert table problem
Hi,
I am currently evaluating LV2013 with respect to the report generation toolkit for use with word 2010. My Vi/program won't insert the correct table and gives me an error message. see below:-
Exception occured in Microsoft Word: The requested member of the collection does not exist.Help Path is wdmain11.chm and context 25421 in NI_ReportGenerationToolkit.lvlib:Word_Insert_Table.vi->NI_Word.lvclass:Append Text Table to Report.vi->Word Table save.vi
I have since run the following word example.vi provided by NI within LV2013 office examples:- Growable table.vi. this gives me the same error!
Exception occured in Microsoft Word: The requested member of the collection does not exist.Help Path is wdmain11.chm and context 25421 in NI_ReportGenerationToolkit.lvlib:Word_Insert_Table.vi->NI_Word.lvclass:Append Text Table to Report.vi->Growable table.vi
It would seem that regardless of my own Vi there is a fundamental problem in the office example vi.
I have found examples of a similar problem in LV2011/2012 but the work around code doesn't seem to match the LV2013 vi's code for a direct replacement.
Can anyone help/shed some light on this?
Thanks in advance,
Dan.Because the upgrade of Word from 2007 to 2010 I needed to upgrade an existing application from LabVIEW 2009 to 2013. This didn't work because of the insert table error. I discovered that the problem is the vi called "Word_Insert_Table.vi" located in the ..Program Files (x86)\National Instruments\LabVIEW 2013\vi.lib\addons\_office\_wordsub.llb. There is a "Cut" command implemented, this command removes the created cell instead of clearing it. Therefore the table will be filled half and then returnes with an error. I have removed this command. I have posted the changed vi (LV 2013).
Attachments:
Word_Insert_Table.vi 30 KB -
i'm building a stand alone application that puts the collected data into Microsoft Word, and it then sends the word report to the printer when click Print from my LabVIEW. But when click Print it runs and generates error message that says "Error 7 occured at Open VI Reference in Dispose Report.vi ->Word Report.vi ->Main.vi". I think i'm missing something during building application stage but i'm not sure what it is. How can i approach this error?
Hi locman,
This error happens when the Report Generation Toolkit's dynamic VIs are not included during the build process. There are two great knowledge-base articles that deal with this error 7 and using the Report Generation toolkit in word and excel. The first one Please take a look at it and let us know if you have any other questions. I hope this helps!
Carla
National Instruments
Applications Engineer -
What are needed to have labview print report to microsoft word
i'm building a stand alone application that puts the collected data into Microsoft Word, and it then sends the word report to the printer when click Print from my LabVIEW. But when click Print it runs and generates error message that says "Error 7 occured at Open VI Reference in Dispose Report.vi ->Word Report.vi ->Main.vi". I think i'm missing something during building application stage but i'm not sure what it is. How can i approach this error?
In the cd with the report generation toolkit you can find the procedure for building an executable.
You have to add the following vi's dinamically:
- vi.lib\addons\_office\_exclsub.llb\_excel dynamic vis.vi
- vi.lib\addons\_office\_wordsub.llb\_word dynamic vis.vi
Software developer
www.mcm-electronics.com
PS: Don't forget to rate a good anwser ; )
Currently using Labview 2011
PORTUGAL
Maybe you are looking for
-
Unable to Install Sun Java Studio Enterprise 8 on Windows XP
Hello, I am trying to install the Sun Java Studio Enterprise 8 on a Windows XP machine. The installation seems to be going quite well untill it reaches the section "Publishing product Information...", then the Wizard returns the following message:- "
-
Converting Business Catalyst Site to Either a php include site, or wordpress cms
I have a relatively simple for a client that was developed using business catalyst. I orginally was hoping to move the site to our sever, but have since found out that you must use adobe to host your site when using muse as a development enviornment.
-
NEW RAM working? Is there a test for it?
Hello, I have a G5 with dual 1.8GHz. It shipped with 1GB of RAM. I do a lot of music recording on my Mac and so I decided to upgrade to 2GB of RAM. I purchased a 1GB kit PC3200 DDR (manufacturer part #STA-G5400/1BG) from Club Mac. I installed the RAM
-
Report painter issue with displaing a month budget
Hi, I have a problem with making report in report painter. I want to display a month budget of cost element for the one particular cost center. For example: Iu2019ve putted two characteristics in one row, a set (which contains cost element number) an
-
Can program for TORG-12 print J_3RV_DELIV_PDF get multiple deliveries
Sometimes multiple deliveries are supplied with one TORG-12 document. Is there any method to combine a few deliveries in one printout document?