Excel Reports - Preserve Template Format

Two part question here:
Part 1:
Is there an easy way to use the NI Report Generation Toolkit or any of the Excel subvis in the _Office addons subdirectory to preserve the existing formatting of a cell that you are writing data to? For example, I have a report template with named ranges to which I write data using the Excel Easy Text.vi, but that VI has inputs for cell formatting (font) that, when left blank, default to some font that I don't necessarily want. Is there a way to get the font (and other formatting properties--allignment, merge status, etc.) from the template before writing data to it to avoid overriding the template settings? I have searched through all the NI Report libraries and the Office addons, and I can't seem to find anything that will accomplish this.
Which brings be to Part 2:
Naturally, my reaction to the problem above is simple: roll your own. I figured it would be pretty easy to write a subvi to return the font refnum from a named range; it would probably look something like this:
However, as you can see, I get broken wires on my attempt to unbundle from the private Report class object. Apparently, I can't access properties of this object unless my VI is a part of the library, but I can't add my VI to the library because it is protected. Is there any way around this? I can see NI not wanting me to go in a modify the shipping vi.lib VIs, but it seems like it's not too much to ask for the ability to add user-created VIs to the libraries.
Maybe there's an easier way; I admit I'm pretty new to LVOOP.
EDIT: Oh, I did see that I could use the Excel Get ActiveX References to return refnums from the original report object, but that seems a bit messy for my tastes--too many unneeded references that I would have to close afterwards, and the connector pane leaves much to be desired (couldn't all the references be bundled together?).

...but I see your String/Numeric data inputs and raise you Array data!
I have some data sets that I store in a 2D string array that I dump to a named range in my Excel template. It works fine if I use the Excel Easy Table.vi, but there is still the aforementioned formatting concern. I tried handling it like this:
But it doesn't seem to preserve all the formatting, for some reason (i.e. correct font type [bold], but incorrect font size). It sure would be nice if I could add a new subvi to the Find and Replace polymorphic VI to handle string/numeric arrays...

Similar Messages

  • Excel report and automatic format via VBA

    Hello,
    I made a report in MSY and created a Makro to format the Excel Sheet (the relevant data is copyied to another Workbook). Now I tried to run this Makro on startup so the user has no need to do this manually.
    This was done by the Workbook_Open() VBA command.
    But now there are several errors, because the makro was executed before the Workbook has been opened at all. For example, the error "the actual Workbook is in use" and something similar occured.
    To test the workbook_open() command, the following code produce 2 message boxes before the Excel Workbook is opened:
    Private Sub Workbook_Open()
        MsgBox "this should not happen"
    End Sub
    Even by saving the Makro in MSY, the message occured (so the makro must be executed).
    Is it possible to prevent the makro execution BEFORE the Worksheet is completely opened or is there a need to start the makro manually to format the Excel sheet?
    Thank you for your suggestions!
    Regards,
    Christian

    I would suggest something like:
    DBAdapter --> Bpel Process --> File Adapter --> write file to location (you can write in csv which can be imported into xls)
    Read Location --> FileAdapter --> Bpel Process --> Email Activity
    Regards,
    Anshul

  • Date Format in Excel reports

    Hi Experts,
    Is there anyway I could print the current date in the YYYY/MM/DD format in the excel report. The format works in a pdf format but in excel the date gets auto converted into MM/DD/YY format. The format-date doesnt work. Please help.
    Thanks,
    Swarna

    Hi Gordon,
    It took some time for me to verify in the client machine.
    I have changed the date format in both Business One and in the regional settings to DD/MM/YY. It seems to be ok however the appearances of date column in excel seems to be uneven.
    04/10/09
    04/11/09
           13/04/09
           14/04/09
           19/04/09
    (Ignore the *)
    I think, the problematic dates seem to be exported to excel in the paste special text format.
    Any Idea why this is happening?
    Regards,
    Mohan
    Edited by: Mohanakrishnan T on May 5, 2009 1:09 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:10 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM

  • XML Publisher to Excel Report : Date format problem

    Hi,
    I am trying to create an Excel report with XML Publisher. I have an issue with the Date Fomatting.
    In the XML template, I have set the "Date" column in date format. But the excel output report "Date" column returns as "General text" (string) and it is sorted as text, not as date.
    Can anyone please help me out?
    Thanks!!!

    Hi,
    Did this post solve your problem? I have the same issue that I need to solve.
    I have an xsl-fo template with dates in it.
    The dates are in english.
    My excel is setup to use danish.
    When I export to excel it knows the month jan, feb, mar, apr, ... which are the same in danish and english.
    But months where it differs like may (danish maj) the cell is a general text instead of date.
    Is there anyway you can set/transform the date in the xsl-fo template so it does not care about the language in excel?
    Thank you in advance.
    BR Kenneth

  • Report Manager - Template Conversion Problems Excel 2003/2007

    Hello,
    We are having an issue in which templates created using excel 2003 are showing incorrectly formatted outputs in excel 2007. We have performed testing by creating new templates in Excel 2007 and most formatting is correct as long as we only make minimal changes to the initial template. Once the template is changed to a further extent the formatting is correct but no actual output shows, just the token defaults. Patches have been applied for both the issue of incorrect formatting caused by Excel's smartcutandpaste and also the problem with the token defaults showing instead of actual Oracle data. We would prefer not to have to recreate the templates as this would be a lengthy process. To me it seems as something was modified that affected the existing templates (other than the Generic FSG Template, which works fine), but does not affect newly created templates. Other methods of viewing the data work fine (pdf and html).
    Any ideas?
    References:
    Patches Applied to try and fix problem: 8792030, 9020608, 86607013
    Metalink Ref: 960409.1, 1082349.1, 811853.1
    Thanks,
    -Steve
    Edited by: sanstey on Oct 15, 2010 12:08 PM

    The BNE.log for the report that would not show the data (due to column deletion):
    10/20/10 3:12 PM ERROR BneAsyncUploadPage.renderPage Error trying to check whether the job will be importing.
    10/20/10 3:12 PM ERROR BneAsyncUploadPage.renderPage Parameter value is not a Boolean.
    10/20/10 3:12 PM ERROR BneAsyncUploadPage.renderPage Error trying to check whether the job will be importing.
    10/20/10 3:12 PM ERROR BneAsyncUploadPage.renderPage Parameter value is not a Boolean.
    10/20/10 3:12 PM ERROR BneAsyncUploadPage.renderPage Error trying to check whether the job will be importing.
    10/20/10 3:12 PM ERROR BneAsyncUploadPage.renderPage Parameter value is not a Boolean.
    The same error appears on the report that works fine (one without deleting columns):
    10/20/10 3:22 PM ERROR BneAsyncUploadPage.renderPage Error trying to check whether the job will be importing.
    10/20/10 3:22 PM ERROR BneAsyncUploadPage.renderPage Parameter value is not a Boolean.
    10/20/10 3:22 PM ERROR BneAsyncUploadPage.renderPage Error trying to check whether the job will be importing.
    10/20/10 3:22 PM ERROR BneAsyncUploadPage.renderPage Parameter value is not a Boolean.
    10/20/10 3:22 PM ERROR BneAsyncUploadPage.renderPage Error trying to check whether the job will be importing.
    10/20/10 3:22 PM ERROR BneAsyncUploadPage.renderPage Parameter value is not a Boolean.
    The client is testing now and believes the report output is what she needs and will not need to delete the columns afterall, but for my curiosty, any ideas?
    Thanks,
    -Steve

  • Bursting with Excel Template Format

    Greetings!
    Does anyone have a working example of a bursting solution with an EXCEL Template Format? The documentation doesn't list Excel as a supported format; my hope is that this is out of date. I'm on version 10.1.3.4.
    Thanks,
    Mac

    Here's the error message I'm getting when I try to run this report. Perhaps it's something different than I expect:
    History ID 584
    Status Failed
    Start Processing Time 8/13/10 1:58 PM
    End Processing Time 8/13/10 1:58 PM
    Time Elapsed 2.03 sec
    System Message oracle.apps.xdo.servlet.scheduler.ProcessingException: java.sql.SQLException: ORA-01722: invalid number
         at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:2153)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.execute(XDOJob.java:372)
         at org.quartz.core.JobRunShell.run(JobRunShell.java:195)
         at org.quartz.simpl.SimpleThreadPool$WorkerThread.run(SimpleThreadPool.java:520)
    Caused by: java.sql.SQLException: ORA-01722: invalid number
         at oracle.apps.xdo.servlet.ReportException.fillInStackTrace(ReportException.java:124)
         at oracle.apps.xdo.servlet.data.DataException.fillInStackTrace(DataException.java:127)
         at java.lang.Throwable.<init>(Throwable.java:181)
         at java.lang.Exception.<init>(Exception.java:29)
         at oracle.apps.xdo.servlet.ReportException.<init>(ReportException.java:40)
         at oracle.apps.xdo.servlet.data.DataException.<init>(DataException.java:44)
         at oracle.apps.xdo.servlet.data.bind.AdvancedQueryBoundValue11.getXML(AdvancedQueryBoundValue11.java:547)
         at oracle.apps.xdo.servlet.ReportContextImplV11.getReportXMLData(ReportContextImplV11.java:408)
         at oracle.apps.xdo.servlet.CoreProcessor.process(CoreProcessor.java:225)
         at oracle.apps.xdo.servlet.CoreProcessor.generateDocument(CoreProcessor.java:76)
         at oracle.apps.xdo.servlet.ReportImpl.renderReportXML(ReportImpl.java:284)
         at oracle.apps.xdo.servlet.scheduler.XDOJob.runBurstingReport(XDOJob.java:1915)
         ... 3 more

  • Freeze Pane Property of Excel in RTF template for XML Publisher Report

    Hi all,
    I have created RTF template and it's output type is Excel.
    I want to apply Freeze Pane Property of Excel in rtf template so that it can be applied to Excel Output.
    Please let me know any information regarding this ASAP.
    Thanks,
    P.A.

    This is the Oracle Reports forum. Better post this in the BI Publisher forum.

  • Generate Report From Template (Excel).vi & don't understand to fill the cells

    I am trying to use the Generate Report From Template (Excel).vi to build my own template, and then fill it with some of my datas. I am trying to replace the "temperature" or "pressure" labels by others, and then fill them with my vi. I don't understand how labview find the location of the labels in the excel template.
    Thanks in advance
    Attachments:
    Excel_Template.xls ‏33 KB
    Generate_Report_From_Template_(Excel).vi ‏120 KB

    You can get the answer to your question by reading the following thread:
    http://exchange.ni.com/servlet/ProcessRequest?RHIVEID=101&RPAGEID=137&HOID=50650000000500000019360100&HTHREAD=000079385000079477000079498000079542000079632&UCATEGORY_0=_49_%24_6_&UCATEGORY_S=0
    The short answer:
    To setup or modify the Named Labels in your Excel template, use Excel's Insert -> Name -> Define command. A name can be defined as a single cell or a block of cells.
    Michael Munroe
    Certified LabVIEW Developer
    www.abcdefirm.com
    Michael Munroe, ABCDEF
    Certified LabVIEW Developer, MCP
    Find and fix bad VI Properties with Property Inspector

  • PL/SQL + XML with Excel report format?

    Dear all,
    I am a new beginner in XML Publisher. For the EBS11i, I can use PL/SQL with http scripts to generate excel report format.
    The following code will include in store procedure:
    >
    begin
    owa_util.mime_header(ccontent_type => 'application/vnd.ms-excel');
         htp.htmlopen;
         htp.headopen;
         htp.print( '<STYLE>' );
    htp.print( '<!--'||
              '.xl24' ||
              '{mso-style-parent:style0;' ||
                     'mso-number-format:"\@";}' ||
    '.xl41' ||
         '{mso-style-parent:style0;' ||
                   'mso-NUMBER-format:"\#\,\#\#0\.000";}' ||
    '.xl42' ||
         '{mso-style-parent:style0;' ||
                   'mso-NUMBER-format:"\#\,\#\#0\.00";}' ||
    '.xl45' ||
         '{mso-style-parent:style0;' ||
                    'mso-NUMBER-format:"\#\,\#\#0";}' ||
    '-->' );
         htp.print( '</STYLE>' );     
         htp.headclose;
         htp.bodyopen;
         htp.para;
         htp.strong( '<U>' || 'Sample Report Name'|| '</U>');
         htp.para;
    htp.tablerowopen;
         htp.tabledata('<DIV align="left">' || rec_main2.vendor_name || '</DIV>',cattributes => ' class="xl24" width="190"');
    htp.tablerowclose
    >
    How can I do that in R12?
    Please advice.

    We currently do not support SQL aliasing of directories. This
    is causing your errors.
    Oracle XML Team
    http://technet.oracle.com
    Oracle Technology Network
    Frank Hubeny (guest) wrote:
    : I think I got past this point by first creating a directory
    : under sys and then granting read privileges to owner of the
    : domsample procedure (in my case the this user is called "xml").
    : create directory xml as 'e:\web\xml';
    : grant read on directory xml to xml;
    : Then the call becomes (I think)
    : exec domsample ('XML','family.xml','test.err')
    : However, I am getting the following error:
    : ERROR at line 1:
    : ORA-20100: Error occurred while parsing: XML/err.log
    : ORA-06512: at "XML.XMLPARSER", line 43
    : ORA-06512: at "XML.XMLPARSER", line 120
    : ORA-06512: at "XML.DOMSAMPLE", line 80
    : ORA-06512: at line 1
    : The readme says "It is necessary for the user running
    : this sample to have been granted the appropriate security
    : priveleges to read and write from a file on the file
    : system." I am not sure what the "write" grant would be.
    : And so I also set utl_file_dir so that it pointed to
    : the directory. But somehow I don't think that utl_file is
    : needed in this context. In any case, it appears I cannot write
    : to the err.log file or find it.
    : Brad Douglass (guest) wrote:
    : : I'm receiving the following error when I use the domsample
    : : procedure supplied with the PL/SQL XML parser:
    : : SQL> exec domsample('e:\web\xml','test.xml','test.err');
    : : begin domsample('e:\web\xml','test.xml','test.err'); end;
    : : ERROR at line 1:
    : : ORA-20101: Error occurred while accessing a file or URL:
    : unknown
    : : protocol: file
    : : ORA-06512: at "XML.XMLPARSER", line 46
    : : ORA-06512: at "XML.XMLPARSER", line 164
    : : ORA-06512: at "XML.DOMSAMPLE", line 77
    : : ORA-06512: at line 1
    : : UTL_FILE doesn't have any problems with the file.
    : : Any ideas?
    null

  • Microsoft Excel reports me what xls file is not Excel format. Is there any way to fix this problem?

    How to repair xls file? Microsoft Excel reports me what file is not Excel format.

    To repair xls file you may tre demo version of Excel Repair Toolbox , but sometimes recovery
    function in Microsoft Excel are not helpful so in that cases you can use third-part tool for recovery bad tables. Install it from here: http://www.excel.repairtoolbox.com/

  • How to mail a formatted excel(Having complex template from microsoft) file as attachment from presentation server through SAP ABAP

    Hello everyone,
    I have an requirement to attach an excel file in mail while sending from SAP ABAP. This excel file is a formatted one and its having a proper template which is stored in wwwdata table in sap. My program will pick the file with no changes in format from presentation server i.e. my desktop and will be sent to external email-ids .
    I have searched in scn but couldn't get a proper answer which will send the .xls file as attachment with no changes in format of template and data of excel.
    Please suggest the approaches how to handle this one.
    Regards,
    Madhusmita

    I have read those two help file and was able to use it in the ABAP proxy code.  Thanks.
    This is the current outcome.  I totally understand that SAP PI communicates via XML.  So when PI picks up a file that contains XML tags, the Inbound proxy is triggered.  I can see its processing in SM50.  However, when I give the Sender FTP adapter a non-XML file to pick up, the Inbound Proxy does not trigger.  The file itself should be read into memory so that I can save it to the application server via ABAP code (with no mapping).  That is why there is no operation mapping
    The reason I am using using FTP to ABAP proxy is because I need to call a subsequent RFC step to process the file.  Else, I will just use FTP to File Adapter scenario.
    Question 1: I am thinking that that file is the attachment.  Is that where I am incorrect and I still need to send in an XML file with the attachment as an addition?
    Question 2: Is this the best approach or should I use BPM?  If BPM, what steps do I need?

  • Formating MSA Excel Reports created in MSY

    Hello All,
    we want to format a excel report, that was created in MSY.
    for example we use the Business Query BSACTIVITY with 'from' and 'to' date parameters.
    The result is then in the Excle sheet BSACTIVITY.
    We have created some programming in the sub "Workbook_BeforeSave"
    to copy the data from BSACTIVITY to a new sheet called Calender.
    When we run the report creation a second time, the data is written to the same file again, but is not creating a new workbook.
    Has anyone experience with the formating of those excelreport ?
    We run CRM 40 SP 09.
    Thank you for your help.
    Best reagards
    Frank

    Hi,
    I just want to push this topic.
    For me it's the same problem. I want to format a Excel report which was created in MSY.
    How can it be done to save the customized design of the excel sheet? Is it possible to save the design in MSY or is it necessary to create an excel makro?
    Thanks in advance!
    Regards,
    Christian

  • Incorrect date format in excel reports

    Hi,
    Some Activity exported from Activity overview to excel have wrong date format. For example
    Some have 21/04/2008 u2013 Correct
    Some have 13/04/09 u2013 Incorrect
    All the dateu2019s in the database seems to be correct like '2008-04-13 00:00:00.000'.
    Client is using SAP B1 2005 SP01 PL-48. Is there any know issue?
    I tried the same in B1 2007 upgrading the database. All the date seems to be correct when I export it here.
    What may be the reason?
    Any suggestions will be appreciated.
    Regards,
    Mohan

    Hi Gordon,
    It took some time for me to verify in the client machine.
    I have changed the date format in both Business One and in the regional settings to DD/MM/YY. It seems to be ok however the appearances of date column in excel seems to be uneven.
    04/10/09
    04/11/09
           13/04/09
           14/04/09
           19/04/09
    (Ignore the *)
    I think, the problematic dates seem to be exported to excel in the paste special text format.
    Any Idea why this is happening?
    Regards,
    Mohan
    Edited by: Mohanakrishnan T on May 5, 2009 1:09 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:10 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM
    Edited by: Mohanakrishnan T on May 5, 2009 1:11 PM

  • Excel report generation error

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

  • How to export a report in .xls format

    <p><font face="arial,helvetica,sans-serif" size="2">For my current project I have to take existing Crystal Report files and export them into Excel.  I cannot use a .csv file, it has to be a .xls file in order to preserve the formatting.  Does the Crystal plugin for Eclipse support this feature?  I know it can export to .csv but how do I export to .xls?                                        </font><font face="arial,helvetica,sans-serif" size="2">Thanks in Advance, </font><font face="Arial" size="2">Dave Amundsen</font></p>

    <p>Hi Dave,</p><p>       Unfortunately this feature is not currently supported with the Java engine which ships with Crystal Reports for Eclipse. There is a thread under the Feedback/Enhancement Requests section of the Forum where I would encourage you to add your opinions. You can find the thread here:</p><p><a href="/node/642"><u><strong>http://diamond.businessobjects.com/node/642 </strong></u></a></p><p>The only solution I can offer at this time is to look at one of our server solutions (e.g. Crystal Reports Server) if you need formatted Excel exporting with your Crystal Reports files. From what I hear, converting our existing Excel export functionality to a 100% Java environment requires a sizeable development effort, which is why we were not able to get this feature into the initial release of Crystal Reports for Eclipse.</p><p>If you are interested in more information around our Crystal Reports Server product or wish to download a free trial of the product, check out this link:</p><p><a href="http://www.businessobjects.com/products/reporting/crystalreports/server/default.asp"><u><strong>http://www.businessobjects.com/products/reporting/crystalreports/server/default.asp</strong></u></a>  <br /></p><p>I should also mention that our server solutions do come with a complete Java SDK, which has a very similar object model to the one used by the Java Reporting Component shipped with Crystal Reports for Eclipse. </p><p>Regards,<br />Sean Johnson (CR4E Product Manager) </p>

Maybe you are looking for

  • HT3281 64G iPod Touch sync problem with podcasts

    2 of 6 podcasts didn't load when I sync'd my 64G iPod Touch.  They appear to be in the podcast library on my laptop of purchased podcasts. What do I need to do to get them to sync?

  • Flash Movie export with Keynote

    Hi, I am using Keynote this time mainly to make a Flash movie for a website. However, when I export the movie to SWF format,the file is quite large (About 9mb) too large for use online. Does anyone know, is there a way to reduce this filesize? I look

  • Save as Midi file?

    I found a midi file on the internet but I can't seem to save it on my Mac. I found the same file with my PC and right clicked to "Save Target As" and saved it in my midi program and that was that. Why is it so hard on my Mac? Peter

  • Mac OS X Lion unable to install after internet restore fails to verify

    I am in middle of the restore process. I have deleted the partition as adviced by apple support. But when on step to install Mac OS X Lion (using internet restore), it asks for apple ID for verification. On providing the correct credentials too it fa

  • Best Way To Clone Old HD?

    I have a Quicksilver 2002 which has an internal 40G HD. I just purchased a SATA PCI card and a 250G SATA HD. I would like to replace the old HD with the new 250G but would like to clone the entire drive before replacing. I have read some of the discu