Call MS Access 97 autotatization from MFC program 
Author Message
 Call MS Access 97 autotatization from MFC program

*** post for FREE via your newsreader at post.newsfeeds.com ***

Hi ALL !

Do anybody know, how make correct call of any Access 97 automatization
functions from MFC program ?

I made following:

ClassWizard -> Add class-> From a type lybrary-> Import from Type Library,
select file, Open.
Add  AfxOleInit () into InitInstance method;
Add #include <afxdisp.h>

Write code:

 IDoCmd cmd;
 if (!cmd.CreateDispatch("Access.Application.8"))
  AfxMessageBox("Server not Found");

 cmd.OpenReport(  .... - ???

Are these all correct ?

What I must write next ( which need  arguments of this function for open and
printing report from MDB base, for, wxample ???

----------------------
WBR
Alexander Berezhnoy

-----= Posted via Newsfeeds.Com, Uncensored Usenet News =-----
http://www.*-*-*.com/ - The #1 Newsgroup Service in the World!
-----==  Over 90,000 Newsgroups - 16 Different Servers! =-----



Wed, 10 Dec 2003 19:42:39 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. VARIANT type for automatization (call MS Access 97 from MFC program)

2. Does V5.0 MFC support MS Access '97

3. Is there a C/C++ library to access MS Access 97

4. The Cross-linking problem for MS Access 97

5. How to import MS Access 97

6. Using VC++ 6.0 as an automation client to view and print reports from MS Access 97

7. ODBC MS Access 97 Login Failed?

8. How to import MS Access 97

9. How to import MS Access 97

10. MS Access 97 Reports in VC Application?

11. MS Word 97 OLE programming ...

 

 
Powered by phpBB® Forum Software