Excel COM object in Unix Server

We generated the Excel file with Macros in NT server with Excel Installed. Is there is any way to achieve this in Unix Server?
Thanks in Advance
Ayyanar

There are a couple of ways to generate Excel files, regardless of the operating system. If your version of Excel supports the Excel XML file format, then you can use PeopleCode to generate text based Excel XML files. For this approach, you usually create a template from an Excel XML file and then insert placeholders for content (usually in the form of XSL, but it could be %Bind(:n) in an HTML Definition).
Another approach I have used is [Apache POI|http://poi.apache.org/].
I don't work with XMLPublisher, but it may support Excel output as well.

Similar Messages

  • Problem calling COM Object on Windows Server 2008 x64

    Hi,
    We are using 32 bits COM object called in Coldfusion page on 32 bits OS. It works fine since few years.
    Now we need to use it on x64 Windows Server 2008 and 64bits IIS.
    As I 've seen (http://www.coldfusionjedi.com/forums/messages.cfm?threadid=87869C67-B1 9B-288F-F32B6E8BAB3228CA ),a 64 bits process can only call 64 bits DLL.
    So we created a 64 bits Wrapper like this : http://www.dnjonline.com/article.aspx?id=jun07_access3264
    But  calling 64 bits COM Object still raises the same error (" The cause of  this exception was that: java.lang.RuntimeException: Can not use  native  code: Initialisation failed") whereas it works fine with a 64 bits  executable created in .NET for example.
    Is there a known issue about this subject?
    Sorry for english , I'm a french developper.
    Thanks in advance.

    Can somebody please share the solution for this issue?
    I am facing similar issue with Windows 2012 R2 x64 OS and Excel 2007(32-bit) combination.
    I tried couple of things like Excel is able to Open an existing workbook on my system but fails to
    create a new Workbook as done by invoking the "Add" command. It fails with Error 800a03ec.
    I tried creating the two folders i.e. C:\Windows\SysWOW64\config\systemprofile\Desktop & C:\Windows\system32\config\systemprofile\Desktop, but could not get it working.

  • Any function module to transfer File(Excel)  from Appli Serveto Unix Server

    Hi all,
    Do you have any function module to transfer excel file from application server to Unix server.
    Can anyone have some sample code for the same.
    Thanks in Advance.
    Sreedhar Marri

    Hi,
            There is no function module ,instead use open dataset command.
    Syntax example,
    data: e_file like rlgrap-filename.
    data : txtstr type string.
    concatenate  searchpoints-dirname '/scm/' werks '/' filnam into e_file.
      open dataset e_file for output in text mode encoding default.
    loop at itab.
        concatenate itab ',' into txtstr.
         transfer txtstr to e_file.
      endloop.
    where itab is the contents u want to transfer.
    Pls check for required authorisations with ur BASIS for open dataset command.
    Regards,
    Balakumar.G.

  • Close Excel com object without saving changes?

    Hi, I am trying to write a script which opens each of 31 excel workbooks, retrieves a value from a cell, and closes each workbook after retrieving.
    My code so far:
    $day=1
    $excel = New-Object -ComObject Excel.Application
    $excel.Visible=$True
    $workbook= $excel.Workbooks.Open("C:\Path|to\File\1_"+$day+"_14.xlsx")
    $workbook.sheets.item(1).activate()
    $WorkbookTotal=$workbook.Worksheets.item(1)
    $value = $WorkbookTotal.Cells.Item(7,13)
    $value.Text #this should give you back the Value in that Cell
    $excel.close()
    My problem is that when the code hits the $excel.close() method, the file stays open, and prompts for saving changes.  I don't know why it thinks there are changes, but what I want is to close the workbook without saving changes.
    I've just closed 44 open browser tabs, and have tried many things over the last hour, but can't seem to get this one.
    If anyone has any advice on how to do this, it would be greatly appreciated!
    Thanks,
    Kevin

    Hi,
    Please replace below code:
    $excel.close()
    with
    $workbook.close($false)
    $excel.quit()
    Hope this helps.
    Regards,
    Yan Li
    Regards, Yan Li

  • Excel COM Object

    This is the error I am recieveing
    An exception occurred when instantiating a Com object.
    The cause of this exception was that:
    coldfusion.runtime.com.ComObjectInstantiationException: An
    exception occurred when instantiating a Com object..
    I have seen others having this same issue, but a solution
    have never been supplied.

    The com pool can be accessed with admin priveleges in:
    Start Menu > Programs > Administrative Tools >
    Component Services
    drill down to COM+ Applications and checked the icon for your
    COM is rotating...
    If it's not - right-click and select Start
    If it is - right click and select 'Shut Down', then
    right-click and select 'Start'

  • Excel COM object calls break with Office 2013 upgrade on 64-bit OS?

    Out of the 1000+ computers in the company mine is the only one running 64-bit windows 7.  I have noticed that when i try to run a small DLL i created to convert Excel files to Tab Delimited files it is crashing only on my computer.
    I have debugged the source code and found that there is no real exception being thrown except a popup does appear in the background stating "We're sorry, but Excel has run into an error that is preventing it from working correctly. Excel will need to
    be closed as a result.  Would you like us to repair now? [Repair Now][Help][Close]"
    If i open excel via the main application this same popup comes up and when i click repair excel closes.  when re-opened Excel re-activates and then works fine.
    here is a sample of my (VERY simple) code which has worked for years on office 2007 with 64-bit OS:
    Dim excelPath As String = "C:\test.xlsx"
    Try
    objXL = CreateObject("Excel.Application")
    With objXL.Application
    .displayalerts = False
    .Visible = False
    .workbooks.Open(excelPath)
    .Workbooks(ExcelFileName).SaveAs(csvPath & csvFileName, Excel.XlFileFormat.xlCurrentPlatformText, , , , , Excel.XlSaveAsAccessMode.xlNoChange, , , , , )
    .workbooks(csvFileName).Close(csvPath & csvFileName, savechanges:=True)
    End With
    Catch ex2 As Exception
    Throw ex2
    Finally
    objXL.Quit()
    objXL = Nothing
    End Try
    I have isolated the exact line that is causing the exception to be thrown... 
    .Visible = False 
    Why would hiding the Excel UI cause an error of "We're sorry, but Excel has run into an error that is preventing it from working correctly" to be displayed?
    If i remark out this line then the application seems to work properly for me...

    That I do not know. Do you have another machine where Office 2013 is installed, and where you can test? It could be system configuration issue, could be a change in the application behavior or a difference between 32-bit and 64-bit. You are updating
    at least a couple of generations of software and now running in a 64-bit environment so there is always the potential for changes in behavior and software defects.
    Unfortunately, I do not have Office 2013 64-bit installed so I cannot test this scenario.
    You could also try posting to the
    Excel for Developers forum to see if anyone has encountered the same issue when using Excel automation.
    Paul ~~~~ Microsoft MVP (Visual Basic)

  • Too Many Files Open (Errno: 24) - HP Unix server

    Hi All,
    We have many processes (nearly 30) running on HP unix server. Among these 30 processes, 10 processes runs for every 15 mins and transfer files between NT server and UNIX server.
    All these 10 processes are same processes. Only difference is, each one transfer files from/to different NT servers. During the file transfers, we are opening and closing the streams. But, we are not closing the file objects. Without closing the file objects, we are assigning NULL to the file objects after use. I read at many places that it is recommended to assign NULL to the file object as assigning null will be removed by garbage collector.
    Coming to the issue..... after our processes runs for 1 or days, we are getting an error saying "java.io.FileNotFoundException: Too many open files (errno:24)" and the corresponding process is going down.
    it seems, the setting specified to limit the file objects on UNIX server need to be increased. But, as we are closing all the streams, I don't think increasing the setting on UNIX will solve the problem.
    Could any of you throw some light on this and let me know if you already have come across this type of issue before?
    One more doubt I have is.... I read as ...... The file object limit set on UNIX is the sum of file objects as well as open sockets count. Do any can help me in letting me know what else will be considered as part of these fileobject count? I mean, whether the connection to DB from unix also are considered as part of these file object count?
    Thanks in advance and looking for your reply....
    Kamal

    Under Unix, sockets, named and unnamed pipes etc. all use file descriptors as teh open files.
    Unix systems usually provide the /proc pseudo file system.
    ls -l /proc/[process id]/fd
    might yield something interesting.
    total 31
    lr-x------ 1 oracle oinstall 64 Jan 3 12:01 0 -> /dev/null
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 1 -> /opt/oracle/product/AS/10g/R2/opmn/logs/OC4J~ebank~default_island~1
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 10 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/dev/ebank_default_island_1/application.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 11 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/dev-sme/ebank_default_island_1/application.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 12 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/dev-sme-fun/ebank_default_island_1/application.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 13 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/smea-dev/ebank_default_island_1/application.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 14 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/dev-noncash/ebank_default_island_1/application.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 15 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/fun-noncash/ebank_default_island_1/application.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 16 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/act-trambulin/ebank_default_island_1/application.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 17 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/ebank-dev/ebank_default_island_1/application.log (deleted)
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 18 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/log/ebank_default_island_1/default-web-access.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 19 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/log/ebank_default_island_1/jms.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 2 -> /opt/oracle/product/AS/10g/R2/opmn/logs/OC4J~ebank~default_island~1
    lrwx------ 1 oracle oinstall 64 Jan 3 12:01 20 -> socket:[2833421]
    lrwx------ 1 oracle oinstall 64 Jan 3 12:01 21 -> socket:[2833419]
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 22 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/log/ebank_default_island_1/rmi.log
    lrwx------ 1 oracle oinstall 64 Jan 3 12:01 23 -> socket:[2833423]
    lrwx------ 1 oracle oinstall 64 Jan 3 12:01 24 -> socket:[2833424]
    lrwx------ 1 oracle oinstall 64 Jan 3 12:01 25 -> socket:[2833425]
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 26 -> /opt/oracle/product/AS/10g/R2/j2ee/home/velocity.log
    lrwx------ 1 oracle oinstall 64 Jan 3 12:01 27 -> socket:[5553789]
    lrwx------ 1 oracle oinstall 64 Jan 3 12:01 28 -> socket:[5786563]
    lr-x------ 1 oracle oinstall 64 Jan 3 12:01 3 -> pipe:[2833350]
    lr-x------ 1 oracle oinstall 64 Jan 3 12:01 32 -> /proc/24214/stat
    lr-x------ 1 oracle oinstall 64 Jan 3 12:01 34 -> /dev/random
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 4 -> pipe:[2833350]
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 5 -> /opt/oracle/product/AS/10g/R2/j2ee/home/velocity.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 6 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/log/ebank_default_island_1/server.log
    lr-x------ 1 oracle oinstall 64 Jan 3 12:01 7 -> /proc/uptime
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 8 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/log/ebank_default_island_1/global-application.log
    l-wx------ 1 oracle oinstall 64 Jan 3 12:01 9 -> /opt/oracle/product/AS/10g/R2/j2ee/ebank/application-deployments/PaymentGatewayTestDevel/ebank_default_island_1/application.log

  • Acessing COM Object having iUnknown interface

    I have some COM(Component Object Model) components using custom interface
    i.e they have been derived from IUnknown and not IDispatch. These have been
    created using VC++.
    I want to use these components in my Labview project.
    How can i create this objects in my application ?
    thanks

    Either place a ActiveX Container (If your COM Object is a Active X Control) from the "Container" Palette or a Automation Refnum (If your COM Object is a Server Application) from the "Refnum" Palette on the Frontpanel. Now you can make a right-click on these Front-Panel Objects, and select your COM object.

  • Error  when instantiating a Com( EXCEL.APPLICATION) object in WINDOWS XP

    Hi,
    I am using coldfusion MX7 and OS is WindowXP. I am using COM
    object with Excel.Application for my program. but it is giving the
    below error. But same program is working in Window Profesional.
    ERROR IS:
    An exception occurred when instantiating a Com object.
    The cause of this exception was that: AutomationException:
    0x80080005 - Server execution failed. Note that Windows 95 does not
    support automatic launch of a server, it must be running already.
    The error occurred in
    C:\CFusionMX7\wwwroot\XXX\report_top20.cfm: line 15
    13 : t1=now();
    14 : path=GetDirectoryFromPath(ExpandPath("*.*"));
    15 : xl=CreateObject("COM", "Excel.Application");
    16 : wbks=xl.workbooks;
    17 : tmp=wbks.open(path & "top20_template.xls");
    Plz help me.
    Reagrds,
    DRA.

    Hi,
    If possible, would you please share your Excel file with us, you can upload it to a file sharing site(Like OneDrive), and then share the link with us. Also please take a look of this article:
    http://support.microsoft.com/kb/178510
    For the warning message, It means that in Excel 2010 and Excel 2007, you can use special effects, such as transparent shadows that are not supported in Excel 97-2003. The special effects will be removed. In the Compatibility Checker, click
    Find to locate the objects that have special effects applied so that you can remove those effects as needed.
    Wind Zhang
    TechNet Community Support

  • Unix:  Any support for creating com objects?

    I'm looking into migrating a CF 8 server from Windows to
    Unix. I see in the documentation for CreateObject that com objects
    are not supported on Unix, "Note: On UNIX, this function does not
    support COM objects."
    Obviously, this won't work on Unix: Note:
    <cfset image = CreateObject( 'com', 'ImageStoreCom.Image'
    )>
    But what about this, can I create a remote com object?:
    <!-- assume '172.0.0.1' is a windows machine with a
    registered com object on it -->
    <cfset image = CreateObject( 'com',
    'ImageStoreCom.Image', 'remote', '172.0.0.1' )
    Finally, if the example above is out of the question, are
    then any techniques for exposing a com object to CF on a Unix box?
    I'm wondering if maybe I could write a Java wrapper for the com
    object and expose it that way?
    Thanks for your help,
    DJ

    <ShotInTheDark>You might try wrapping your COM object
    in a .NET class then accessing your .NET class
    remotely.</ShotInTheDark>
    http://livedocs.adobe.com/coldfusion/8/htmldocs/help.html?content=dotNet_02.html#1160020

  • Accessing COM Objects provided by an EXE server

    Hello,
    I need to control an application through COM. I did this before with Excel and other software and used LabView's ActiveX functions.
    But this time I can't find the object I need when I browse the type library.
    The COM server actually is registered. But it's an "EXE Server" (I used "COM Explorer" to browse all registered COM objects - and the one I need is listed under EXE Servers).
    Is there any possibility to gain access to this interface?
    Thanks!
    Regards,
    Robert

    Hi Robert,
    there is not really a difference between ActiveX object and COM object.
    All COM objects (ActiveX objects) should be accessible.
    If you can't see the object, but you know that you had register it, there are only two possibilities:
    1) Something is wrong with the object -> it is not really standard
    2) You can try to browse manually to the object.
    Use the "Browse" Button (see Browse.jpg) and select the object manually.
    If that doesn't work, there must be something wrong with the object.
    Best regrads
    Dippi
    Attachments:
    Browse.jpg ‏29 KB
    Select Object.jpg ‏163 KB

  • Forms - EXCEL (unix server)

    I want to create a excel file (from oracle forms), It will run at webforms (unix server) and I want to obtain different sheets; How is it possible?
    The form is executed at the server and the file will be created at the server. How I can open it? maybe to open it from forms (Web.Show_Document??), maybe with a link ??.
    Is it possible? Can anybody help me??
    Thanks

    Maria,
    either you use a Java API which allow to deal with xls format (and not CVS format because you have to setup sheets), or you can use Microsoft Office Web Components.
    The first solution can run on the unix server (I think you can download the stuff from Apache group site, but I'm note sure).
    The seconde solution is very easy to use.
    That relies on an ActiveX that you must pilot with VBscript. The VB script must be generated dynamically in your case.
    There are three components (chart, graph and Pivot), each identified by an ID.
    cf MSOWCVBA.CHM on your computer, if you have Office 2000.
    Sample of code:
    <OBJECT classid=clsid:0002E510-0000-0000-C000-000000000046 height=361
    id=Spreadsheet1 style="HEIGHT: 361px; WIDTH: 550px" width="100%">
    <PARAM NAME="ViewableRange" VALUE="A1:XX5000">
    </OBJECT>
    <script language=vbscript>
    Sub Window_onLoad()
    Spreadsheet1.TitleBar.Caption = "Sample Spreadsheet"
    ' Load Data from html file specified in URL
    Spreadsheet1.DataType = "HTMLURL"
    Spreadsheet1.HTMLURL = "http://<machine>:7777/pls/<DAD>/scott.emptocsv?p_type=2&p_table=USER_TABLES"
    End Sub
    </script>
    Caution: Every user must have license Office 2000 in order to use this component.
    Calling from Form
    Form will call a programm which is in charge of generating the VB script above, with the specific data.
    You can develop this programm in PL/SQL, and access it by mod_plsql, by invoking an URL with web.show_document.
    Regards,
    patrick.

  • Creating a COM object with CF9 32-bit on Windows Server 2008 R2 64-bit machine

    I'm using a 32-bit version of CF9 and it's installed on a Windows Server 2008 R2 machine (64-bit).  The problem I'm running into is that it won't allow me to create a COM object - it gives me the error, "no ntvinv in java.library.path null" when I try to run,
    <cftry>
    <cfobject type="COM" action="CONNECT" name="Engine" class="JRO.JetEngine">
    <cfcatch type="Any">
        <cfobject type="COM" action="CREATE" name="Engine" class="JRO.JetEngine">
    </cfcatch>
    </cftry>
    Then when I run it a 2nd time, I get "An exception occurred when instantiating a COM object. The cause of this exception was that: java.lang.RuntimeException: Can not use native code: Initialisation failed."
    Can you help me?

    Replying for your patchset installation pre-req error:
    Use below command:
    ./runInstaller -ignoreSysPrereqs
    Review MOS note 763143.1 for more info.

  • Download Excel file in the Unix directory of Application server

    Hi Friends,
    I have a requirement  of downloading the Excel file in the Unix directory path of the application server,i just need your inputs,it would be great help if you can send any sample coding for downlading the file in the Unix directory?
    Regards
    Dinesh

    You can use the following fm
    RZL_READ_FILE
    or
    use OPEN DATASET FOR INPUT.

  • Configuring DB2 connect for Bussiness Objects  XI on Unix server

    Hello,
    We have installed DB2 Connect on the same unix server where BO is running.
    We are trying to connect BO to DB2 on the Mainframe.
    We are able to connect from the db2 prompt on the Unix to the DB2 on Mainframe.
    We created the instance, and LD_LIBRARY PATH, CLASSSPATH, PATH, DB2INSTANCE Env. vars. are also pointing to the right location.
    Do I need perform additional setup(s) for the BO, for it to connect to the DB2?
    Anyone know?
    Thanks in advance.
    -Shaista

    I recommend that you check out the IBM Pattern book from the support site.  You can do a search at support.businessobjects.com for 'Setup DB2 XIR2' if the link below doesn't work.
    http://technicalsupport.businessobjects.com/KanisaSupportSite/search.do?cmd=displayKC&docType=kc&externalId=patternbookIBM03192008pdf&sliceId=&dialogID=20064845&stateId=1%200%2020066363
    As part of the setup, the instructions recommend sourcing a db2profile from the boe user's .profile.  It also has some information on testing the connectivity to the database, and minimum patch requirements.
    HTH.

Maybe you are looking for