Printing MS Access report from MFC program 
Author Message
 Printing MS Access report from MFC program

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

Hi The ALL !

Can anybody help me :

I want to print MS Access 97 report from MFC program.

I write code:

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

 CString strName="Report1";
 COleVariant variantName(strName);

 CString strBlank="";
 COleVariant variantBlank(strBlank);

 cmd.OpenReport(variantName,0,variantBlank,variantBlank);

compiling is OK. But after run this part of program I get the message
"Member of group not found"

What is incorrect ???

(the MS Access application was running manually before call this code, and
mannually was opened the database, and in that database present the report
"Report1").

Can anybody help me in this ?

-------------------
With best regards
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! =-----



Sat, 13 Dec 2003 17:24:33 GMT  
 Printing MS Access report from MFC program
On Tue, 26 Jun 2001 13:24:33 +0400, "Alexander Berezhnoy"

Quote:

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

>Hi The ALL !

>Can anybody help me :

>I want to print MS Access 97 report from MFC program.

Have a look at Mr. Tom Archer's article at CodeProject
http://www.codeproject.com/database/access_reports_class.asp

// Anders



Mon, 15 Dec 2003 16:35:41 GMT  
 
 [ 2 post ] 

 Relevant Pages 

1. MS Access Reports, Printing and Viewing

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

3. Creating ActiveX controls to print on MS Access reports

4. Printing Access reports via VC++ programming

5. Printing Access reports via VC++ programming

6. Accessing MS Word's print command inside a Visual C++ program

7. Accessing MS Word's print command inside a Visual C++ program

8. Printing a report using MFC (Unhandled exception error when print previewing)

9. Printing a report using MFC (Unhandled exception error when print previewing)

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

11. Call MS Access 97 autotatization from MFC program

12. issuing "MS Access" reports through MSVC

 

 
Powered by phpBB® Forum Software