Solved

Excel Automation

Posted on 2000-02-29
4
179 Views
Last Modified: 2013-11-20
I have some problem interfacing Excel in VC application.   The
requirement in my project is to create and manipulate Excel files
without bringing Excel up.  Using OLE dispatch interface I have written
a DLL,  exposing a class, that supports my application for doing the
same.  But the problem is,  it sets a limitation of having Excel
installed on the PCs where I am running my application.   I don't want
to expect the end user who is using my application, to have Excel
installed in his PC.  My exposed interfaces to create, read or write to
the Excel file does not work if the target PC does not have Excel
installed.
0
Comment
Question by:SunilRH
  • 2
  • 2
4 Comments
 

Author Comment

by:SunilRH
ID: 2568950
Thanx
0
 
LVL 7

Accepted Solution

by:
tchalkov earned 100 total points
ID: 2569125
If you use Excel OLE objects  to work with Excel files then you MUST have installed excel on client machines.

If this is not an option you can try to manage excel files trhough ODBC, DAO or ADO. However you will not be able to use all capabilities which Excel objects offer
0
 

Author Comment

by:SunilRH
ID: 2571485
Hello tchalkov,
 But what my thinking is if you find the dependencies of excel and then  include those DLLs may be it will work. but if so how do i find what is excel have dependencies.

thanx
Sunil
0
 
LVL 7

Expert Comment

by:tchalkov
ID: 2571882
I'm not sure it will be easy to find these dependencies. But even if you can find them, it is not legal to redistribute them to your clients. It is very likely that you will need the excel.exe also.
0

Featured Post

Networking for the Cloud Era

Join Microsoft and Riverbed for a discussion and demonstration of enhancements to SteelConnect:
-One-click orchestration and cloud connectivity in Azure environments
-Tight integration of SD-WAN and WAN optimization capabilities
-Scalability and resiliency equal to a data center

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
Host to IP 7 80
Creating Labels and Frequency list style reports in SAS code 9 105
Complete beginner needs help making a cron job 9 125
bigDiff challenge 17 126
Introduction: Hints for the grid button.  Nested classes, templated collections.  Squash that darned bug! Continuing from the sixth article about sudoku.   Open the project in visual studio. First we will finish with the SUD_SETVALUE messa…
Introduction: The undo support, implementing a stack. Continuing from the eigth article about sudoku.   We need a mechanism to keep track of the digits entered so as to implement an undo mechanism.  This should be a ‘Last In First Out’ collec…
This video will show you how to get GIT to work in Eclipse.   It will walk you through how to install the EGit plugin in eclipse and how to checkout an existing repository.
Two types of users will appreciate AOMEI Backupper Pro: 1 - Those with PCIe drives (and haven't found cloning software that works on them). 2 - Those who want a fast clone of their boot drive (no re-boots needed) and it can clone your drive wh…

830 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question