Report generation in HTML, PDF over Word

Hi,
I am building a report by generating it in Word, PDF formats. To generate the report with data in a certain format i am using MS Word API to get a better layouts for the content, fonts, alignments, etc. I am able to bring the application with format i require, but the only problem is the performance is pretty poor and if the data is huge it will hang. Hence i am thinking of generating the doc. in PDF , probably i need to use the adobe PDF library and do it. My question here is what is the advantages of generating a report in "HTML" and "PDF" when compared to "Word"? If there is any article on this, pls do provide. Whether the performance will improve? Any ideas of using Adobe PDFAPI, if samples are there pls. do provide as well. I need a help from the gurus regarding this. Please do respond.
Thanks,
Rithu

Thanks Vijay. How can i get the following format through Java , for eg,
PEDIATRICS                     PODIATRY
Schwartz, Andrew E, DPM Rithanya,
51 Hospital Hill Rd. Sharon, blahblah....
CT 06069 (860) 364-5944 blahhhhhh
Disidori, Diane, MD nnnnnnnnn
28 Old Park Ln. kkkkkkkk
New Milford, CT 06776 --------------------------------------------------------------------------
(203) 355-8190
Danbury Hospital
Gray Clarke, Virginia L, MD
115 Spencer St
Winsted, CT 06098
(860) 364-0536
22 Upper Main St
Sharon, CT 06069
(860) 364-4240
PLASTIC SURGERY
Mascardo, Teresita G, MD
91 Main St
Sharon, CT 06069
(203) 364-5522
Danbury Hospital, New
Milford Hospital, Sharon
Hospital
Spanish, Tagalog/Filipino
I tried Jasper Reports, but i able unable to get the above format, moreover these datas will have the heading (title) highlighted, uses different symbols, underlines, uses different styles, fonts, etc. Which i think is only possible through MS WORD Api and can be done only in .NET . How this format can be done in Java? Any ideas guys.

Similar Messages

  • Error only in PDF report generation not HTML

    The same report exports fine in HTML. This only happens when exporting a PDF report:
    com.crystaldecisions.sdk.occa.report.lib.ReportSDKException: 26---- Error code:-2147467259 Error code name:failed
    The application was developed by our developer team and it is hosted in a Windows Server 2008 R2.
    Does someone had the same problem ?
    Thank you.

    We solved but not so sure about the cause.
    It had something to do with character encoding in PDF reports.
    Thank you for all that read the question.

  • 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

  • How to use the Report Generation Toolkit to get a list of bookmarks in a Word Template

    I am working on a project where I will need to use the Report Generation Toolkit to fill out a fairly long Word Template. The MS Office Report Express VI can only have inputs for a maximum of 17 bookmarks which is not nearly enough for what I am needing to do.
    I'm wondering if there is some way to use the lower level report generation VIs to read the word template and return a list of the bookmark names as a 1d array of string. The dialog box that you use to set up the Express VI has this capability but I'm not finding a way to scan the document programatically.
    I'm sure I can't be the first person to run into this issue and I'm hoping that someone out there has found a good solution.
    Solved!
    Go to Solution.

    Wordsub.llb should be somewhere in your Labview folder on your local drive. The path to it in my install is: C:\Program Files\National Instruments\LabVIEW 8.6\vi.lib\addons\_office\_wordsub.llb
    Also what specific problem are you referring to about 17 bookmarks? Is that the limit on the express style VI for filling them in from LV? If so what you will need to do is to use the lower level function 'Word Insert Field' under Word Advanced VIs. You will need to supply the VI the name of the bookmark and the text you want to insert.

  • Word report generation toolkit error with Win 7 LabVIEW 2013, Word2010

    Hi All
    I'm seeing different Errors using the Report generation toolkit. Maybe you can help me with that.
    The errors are:
    -2147417846, application is busy in Word_Get_range.vi
    -2146824090 Exception in Microsoft word: Befehl misslungenHelp Path is wdmain11.chm and context ...
    -2147417846 application is busy in Word_Quit.
    the error messages are attached to the post.
    I'm testing 10 sensors with one application and want to run up to 5 applications on one computer. Since I'm seeing such errors as application is to busy I set all my report generation vi's as non-reentrant execution and additionally added some pause after each word modification.
    But I'm still seeing such errors when I run two applications on one computer.
    What is the best way to deal with these errors?
    thanks
    best regards
    Urs
    Attachments:
    exceptionerror.PNG ‏20 KB
    BusyActiveX2.PNG ‏20 KB
    BusyActiveX.PNG ‏22 KB

    Here my Vi's involved in creating the report.
    Is there a way to check wheter word is busy or already open?
    Attachments:
    save report as PDF.vi ‏26 KB
    create_report.vi ‏70 KB
    Word_Update_Table.vi ‏34 KB

  • Report generation is saving data to a word template

    I created a template for a program to write test result data when prompted by the user. My problem is that after the template is written to and closed it's asks if the new data shoule be saved. I don't want to give the user that option because it actually saves it to the template not a document, and when another test is done and report is requested, it doesn't write over the data fromt the previous results, it adds to it. Is there some sort of Word security option or a vi that might be helper to prevent users from saving data permanently, to overwrite previous data?

    Harene,
    The ActiveX call to Quit comes with a parameter to Save Changes (T or F). I would suggest making that the last call you make. This is how the Dispose Report.vi is made in the Report Generation Toolkit for Microsoft Office. (This was checked on my machine with Office 2000.)
    Randy Hoskin
    Applications Engineer
    National Instruments
    http://www.ni.com/ask

  • No Word or Excel selection in report generation toolkit

    I've uninstalled/repaired the Report Generation Toolkit that I received with 8.2 Toolkit disks. I still don't have the selection of Word or Excel with the New Report.vi.  All I get is Standard Report or HTML. Some magic I'm missing?
    PaulG.
    "I enjoy talking to you. Your mind appeals to me. It resembles my own mind except that you happen to be insane." -- George Orwell

    Check out my reply (#4) in this thread, where I link to the KnowledgeBase entry that discusses having a toolkit installed to multiple LabVIEW versions.
    -D
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Report Generation Toolkit Table Row Height-MS Word

    I am having trouble setting the table row height in the report generation toolkit. I can set the column width fine, but the row height seems to remain the same no matter what I set it to. I have attached the VI that generates and formats the table, and the printout it is resulting in. I have also attached the template file I am using.
    Any tips to get this to work right? I am trying to make the cells exactly the same height as the text inside. 
    Solved!
    Go to Solution.
    Attachments:
    AddMarkersToReport.vi ‏20 KB
    badFormatting.pdf ‏179 KB
    splitter.docx ‏13 KB

    Hi,
    So I tried .2  and it didn't work.  So I went to Word to manually change it, and it did not work either.  There is a selection box in word, for the table properties, that seems to default to the value "at least".  When I changed this manually to "exactly" in word, no problem with the .2 manually in Word.
    Hopefully this can be set within the template, for all new inserted tables.  I'm not sure the report generator VI's expose this property.  Well, this is a start for the issue.
    Edit ****
    You can go into the add table VI and expose the property.  See pic.   However, you have to decide if you want to "upgrade" this VI permanently to expose this property or make a copy with the property exposed.   I haven't messed with the new class reports too much, so not sure of the ins and outs with this.
    I think this is the issue with the row size becoming smaller.
    Mark Ramsdale

  • Report Generation MS Word Table Bug

    Hi everybody,
    I am using Word 2010 and LV2010 and I am unable create a proper table with Word using the Report Generation Toolkit. Excel and HTML work fine, but Word fails. Not even the Examples work as they are supposed to.
    When using the attached VI (see screenshot below)
    the result appears as follows:
    Temperature
    Temperature
    Temperature
    Temperature
    Temperature
    Data 1
    Data 1
    Data 1
    Data 1
    Data 1
    Data 2
    Data 2
    Data 2
    Data 2
    Data 2
    Does anyone have an idea?
    Thanks in advance.
    ben
    Solved!
    Go to Solution.
    Attachments:
    test_table.vi ‏10 KB

    OK, if NI won't provide a workaround, I'll create my own:
    The problem stems from the fact that the NI Report Toolkit populate a Word table by first creating an empty table of the correct size, then placing the table contents into the copy buffer, then selects the whole table and uses Paste to push the data into the table. The problem is actually in Word, because in Word 2010 it interprets the contents of the copy buffer differently.
    The solution is to alter the data that gets pushed into the copy buffer by the NI Report Toolkit. To implement my fix, you will need to alter one VI of the NI Report Toolkit (so you might want to make a backup in case this stops it from working in other previous release of Word).
    Open [LabVIEW installation folder]\vi.lib\addons\_office\_wordsub.llb\Word_In​sert_Table.vi
    There is a nested for loop that interprets the provided string array data and reformats it into a long ASCII string for the copy buffer. It should look like this:
    Change the nested loop to look like this:
    The changes I've made are twofold:
    1. Within the inner loop, replace the "\n" char with a Tab character
    2. Just after the inner loop, add a new "concatenate strings" function that adds "\n".
    This alters the string that the toolkit places into the copy buffer. You should find that report tables now populate correctly in Word 2010!
    This is untested on previous releases of Word, and could possible introduce problems there, so if anyone could test this for me it would be most appreciated
    Best of luck!
    Thoric (CLA, CLED, CTD and LabVIEW Champion)

  • Difference in the appearance of HTML vs. Standard reports generated with the Report Generation VIs?

    When I generate a "Standard Report" (to a printer or PDF) with the attached code, the output looks like this:
    If I instead use the same code to generate an HTML report, the output looks like this:
    Can anyone explain why the HTML output has had the extra spaces stripped out of it?
    Is there anything I can do to prevent it from happening?
    VI is attached (LV v11.0.1f2) but this is what it looks like...
    Attachments:
    Print Test.vi ‏47 KB

    SteveBale wrote:
    If you look at your html source the spaces are there. The problem is the way html is rendered it removes the spaces. You will either need to add in <pre> </pre> tags to tell the browser to include those spaces, or insert the string &nbsp; which the browser interprets as a single space.
    Regards,
    Steve
    OK, thanks. I guess I'll end up living with it the way that it is because
    using either method seems to also have the side effect of causing the output to become double-spaced and
    the only reasonable place to implement the change (so that it did not also impact the "standard report" output) would be within the report generation VIs and I'd rather not be modifying them.

  • Report Generation: linebreak text in Word table row

    Hello everybody.
    Im trying to add some pretty tables to my Word report created with the Report Generation Toolkit.
    I build my 2d string array with the table data and that works fine. But if I add a text to the array cell that has a linebreak constant it breaks the table. I.e my strings is not in the right place and some are missing in the table if linebreaks exists in the strings in the 2d string array that I feed to the 'Word Easy Table' VI. Se my lw 7.1 example below.
    Any one have an ide how to solve this?
    Attachments:
    WordTable-LinebreakProblem.vi ‏82 KB

    Paul,
    You last response got me think about the complex nested grouping of my for loops that are surrounding and embedded in my table(s). I analyzed my groupings and found that two of my levels had similiar values. When I moved those groupings outside my table, the 3 TOC entries FINALLY appeared !!! Newbie error!!! Anyway, the only problem left to resolve is the page number is not generating with the TOC entries (Getting Bookmark Not Defined Problem). I am wondering if this is a context problem ...or still part of a looping problem. I also can't seem to get the table headers to replicate on page breaks in RTF mode. They do work in PDF generation mode. It is sort of difficult to pass info because I nature of the info I am working with. Thanks for your time and patience. I have learned alot just trying to get this complex template to work.
    Thanks,
    Tom

  • I can not convert pdf to word ,because file over 100 mb . how can I do ? if I can not convert file ,how can I cancel order ?

    I can not convert pdf to word ,because file over 100 mb . how can I do ? if I can not convert file ,how can I cancel order ?

    To convert documents larger than 100 MB you will need Acrobat; you can download the 30-day trial from https://www.adobe.com/products/acrobat.html
    To cancel a subscription follow http://helpx.adobe.com/x-productkb/policy-pricing/cancel-subscription-acrobat-online-servi ces.html

  • 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 KB

    We 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

  • How to obtain the table index in word use LabVIEW Report Generation Toolkit for Microsoft Office

    I created a word templete and it had several tables. When I use the "Word Edit Cell" function in LabVIEW Report Generation Toolkit for Microsoft Office, the function need "table index", and I didn't find any function to get or set the table index in word document. How can I achieve my attention to write value to specified table cell using the "Word Edit Cell" function?
    Thanks for reply!
    YangAfreet

    Hi yangafreet
    You do not need to get the table index for the word edit cell.vi from anywhere. LabVIEW will automatically index all the tables in the document. See the attatched vi for an example.
    Rich
    Attachments:
    Table Edit.vi ‏23 KB

  • Report Generation Toolkit - Prints data from a previous report in Word

    I am running an executable from the "system exec.vi" created with Labview 6.1. I am using the Report Generation toolkit vi's to create a report in Word that prints simple Title with test header and then appends a Table with measurement data. The problem is the measurement data in the table is from a previously printed report. This problem only exists when I Run the Report.exe from the "System Exec.vi". If I manually start the Report.exe in Windows or open in the Windows Commandline the correct data measurement data is printed in the report table. Any suggestions are appreciated. Thank You

    Hi,
    So far I havent been able to reproduce this on my computer. Could you post your code so that I can try and reproduce this issue?
    Feroz P
    National Instruments

Maybe you are looking for

  • Error while running web application through JDEV (10.1.3.0.3) in OC4J

    Error while running web application through JDEV (10.1.3.0.3) in OC4J. Here is the error message. 07/10/02 14:45:28 Exception in thread "OC4J Launcher" oracle.classloader.util.AnnotatedNoClassDefFoundError:      Missing class: javax.xml.bind.JAXBCont

  • Pdf with comments.

    Hai, I sent a pdf file with comments from the iped, and the comments got not clearly. How can I send the file without the comments will be distorted ? with thanks, reut.

  • Where does one get the latest CS4 Patch?

    I installed CS4 but don't know where the latest patches are? Where can one go to find out about those and download them?

  • How to read the CSV Files into Database Table

    Hi Friends i have a Table called tblstudent this has the following fields Student ID, StudentName ,Class,Father_Name, Mother_Name. Now i have a CSV File with 1500 records with all These Fields. Now in my Program there is a need for me to read all the

  • Buying Microsoft Office 2004 on Ebay?

    I am looking into buying Microsoft Office 2004 for my MBP and I'm looking for the best deal. On my search, I have found a number of them on Ebay, selling for really cheap. Some of the MS Office software being sold is opened (and has apparently been u