Click here to Skip to main content
15,900,816 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
QuestionChanging Font Size in MS Word Automated Document Created using VC++(MFC) Pin
Sachinpatole6-Dec-05 19:56
Sachinpatole6-Dec-05 19:56 
QuestionThanks for help and need further..... Pin
usha_dolly6-Dec-05 19:35
usha_dolly6-Dec-05 19:35 
AnswerRe: Thanks for help and need further..... Pin
ThatsAlok6-Dec-05 21:55
ThatsAlok6-Dec-05 21:55 
QuestionPlease HELP Me( Porting from Win32 to MAC) Pin
vishix16-Dec-05 19:31
vishix16-Dec-05 19:31 
QuestionLittle Question Pin
Ankush Mehta6-Dec-05 19:08
Ankush Mehta6-Dec-05 19:08 
AnswerRe: Little Question Pin
S Douglas7-Dec-05 1:13
professionalS Douglas7-Dec-05 1:13 
GeneralRe: Little Question Pin
Ankush Mehta7-Dec-05 1:46
Ankush Mehta7-Dec-05 1:46 
GeneralRe: Little Question Pin
S Douglas7-Dec-05 21:28
professionalS Douglas7-Dec-05 21:28 
Ankush Mehta wrote:
4) if you have something to tell about it.


Here is a good quick way to dump a recordset to a excel file, then call shellexecute to print that file. Delete it it after your done.

CString str;
str.Format("SELECT * INTO [Excel 8.0;DATABASE=%s].[%s] FROM [%s]", ExcelFile, Worksheet, table);

Create an ADO Connection object to the database then call.
pConn->Execute(str.AllocSysString(), NULL, adExecuteNoRecords);

To enumerate the tables in an access database try
SELECT MSysObjects.Type, MSysObjects.Name
FROM MSysObjects
WHERE MSysObjects.Type=1;

Ankush Mehta wrote:
6)I could not manage printing a webpage with ShellExecute.My code is like this:
ShellExecute(NULL,"print",m_FileName,NULL,NULL,SW_HIDE);


Try ShellExecute("explorer.exe","print",m_FileName,NULL,NULL,SW_HIDE);



ZeePain! wrote:
This seems like one of those programs that started small, grew incrementally, building internal pressure, and finally barfed all over its source code sneakers. Or something.

thedailywtf.com[^]
GeneralRe: Little Question Pin
Ankush Mehta7-Dec-05 22:15
Ankush Mehta7-Dec-05 22:15 
GeneralRe: Little Question Pin
S Douglas7-Dec-05 22:33
professionalS Douglas7-Dec-05 22:33 
GeneralRe: Little Question Pin
Ankush Mehta7-Dec-05 23:11
Ankush Mehta7-Dec-05 23:11 
GeneralRe: Little Question Pin
S Douglas8-Dec-05 0:22
professionalS Douglas8-Dec-05 0:22 
GeneralRe: Little Question Pin
Ankush Mehta8-Dec-05 1:11
Ankush Mehta8-Dec-05 1:11 
GeneralRe: Little Question Pin
S Douglas8-Dec-05 1:18
professionalS Douglas8-Dec-05 1:18 
GeneralRe: Little Question Pin
S Douglas8-Dec-05 3:44
professionalS Douglas8-Dec-05 3:44 
QuestionHow to open recent files from file menu in MFC application? Pin
jayshml6-Dec-05 17:40
jayshml6-Dec-05 17:40 
AnswerRe: How to open recent files from file menu in MFC application? Pin
opsoft-op6-Dec-05 18:58
opsoft-op6-Dec-05 18:58 
QuestionMoveFileWithProgress gives ERROR_ALREADY_EXISTS Pin
Chintoo7236-Dec-05 17:35
Chintoo7236-Dec-05 17:35 
AnswerRe: MoveFileWithProgress gives ERROR_ALREADY_EXISTS Pin
Cool Ju6-Dec-05 18:27
Cool Ju6-Dec-05 18:27 
GeneralRe: MoveFileWithProgress gives ERROR_ALREADY_EXISTS Pin
Chintoo7236-Dec-05 20:40
Chintoo7236-Dec-05 20:40 
GeneralRe: MoveFileWithProgress gives ERROR_ALREADY_EXISTS Pin
Cool Ju6-Dec-05 21:39
Cool Ju6-Dec-05 21:39 
QuestionDetermine the coordinate in an image Pin
H Anh6-Dec-05 15:38
H Anh6-Dec-05 15:38 
QuestionAbout WM_THEMECHANGED Pin
Cyrus Dang6-Dec-05 12:43
Cyrus Dang6-Dec-05 12:43 
AnswerRe: About WM_THEMECHANGED Pin
Jörgen Sigvardsson6-Dec-05 12:47
Jörgen Sigvardsson6-Dec-05 12:47 
QuestionFindWindow question Pin
skinnyreptile1686-Dec-05 11:50
skinnyreptile1686-Dec-05 11:50 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.