Click here to Skip to main content
15,887,214 members
Home / Discussions / C / C++ / MFC
   

C / C++ / MFC

 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc23-Sep-09 21:12
MsmVc23-Sep-09 21:12 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc23-Sep-09 21:18
MsmVc23-Sep-09 21:18 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc23-Sep-09 23:28
MsmVc23-Sep-09 23:28 
AnswerRe: shell32.dll!7ca51646() Pin
David Crow24-Sep-09 3:51
David Crow24-Sep-09 3:51 
GeneralRe: shell32.dll!7ca51646() Pin
MsmVc24-Sep-09 23:09
MsmVc24-Sep-09 23:09 
QuestionRe: shell32.dll!7ca51646() Pin
David Crow25-Sep-09 2:30
David Crow25-Sep-09 2:30 
AnswerRe: shell32.dll!7ca51646() Pin
MsmVc25-Sep-09 2:56
MsmVc25-Sep-09 2:56 
Questionexcel automation Pin
prithaa23-Sep-09 18:59
prithaa23-Sep-09 18:59 
I am using automation classes to draw chart through excel from VC

Is there any documetation where i can get the values of the variables to passed to ChartType

Ex I have this code

_Application app;
_Workbook newBook;
Workbooks books;
Worksheets sheets;
_Worksheet newSheet;
Charts charts;
_Chart newChart;
COleVariant vOpt((long)DISP_E_PARAMNOTFOUND, VT_ERROR);
//Create Excel server (start Excel)
if(!app.CreateDispatch("Excel.Application"))
{
AfxMessageBox("Can’t start Excel server!");
return;
}
app.SetVisible(true); //set Excel visible
// app.p.put_UserControl(TRUE); //user can operate Excel
books = app.GetWorkbooks();
newBook=books.Open("d:\\wipro1.csv",vOpt, vOpt, vOpt, vOpt, vOpt,
vOpt, vOpt, vOpt, vOpt, vOpt,vOpt, vOpt,vOpt,vOpt);
sheets = newBook.GetSheets();
newSheet = sheets.GetItem(COleVariant((short)2));
charts = newBook.GetCharts();
newChart = charts.Add(vOpt,vOpt,COleVariant((short)1));
newChart.SetName("My chart");
newChart.SetChartType((long)1);
---------------------------
The above code works fine but what variables should be passed to SetChartType ? which Variable corresponds to which charttype?


Prithaa
AnswerRe: excel automation Pin
Franck Paquier23-Sep-09 22:17
Franck Paquier23-Sep-09 22:17 
GeneralRe: excel automation Pin
prithaa30-Sep-09 22:38
prithaa30-Sep-09 22:38 
QuestionHandle Dialog in VB Script Pin
Bedke23-Sep-09 18:30
Bedke23-Sep-09 18:30 
QuestionTo launch the "Speakers Properties" Pin
Maxwell Chen23-Sep-09 18:05
Maxwell Chen23-Sep-09 18:05 
AnswerRe: To launch the "Speakers Properties" Pin
Maxwell Chen23-Sep-09 18:35
Maxwell Chen23-Sep-09 18:35 
AnswerRe: To launch the "Speakers Properties" Pin
kilt24-Sep-09 7:03
kilt24-Sep-09 7:03 
QuestionMemory mapped file I/O Vs Disk I/O Pin
vipin_nvk23-Sep-09 18:05
vipin_nvk23-Sep-09 18:05 
AnswerRe: Memory mapped file I/O Vs Disk I/O Pin
Stuart Dootson24-Sep-09 6:23
professionalStuart Dootson24-Sep-09 6:23 
Questiona bother about windows service Pin
jinjiashan23-Sep-09 16:16
jinjiashan23-Sep-09 16:16 
AnswerRe: a bother about windows service Pin
jinjiashan23-Sep-09 21:50
jinjiashan23-Sep-09 21:50 
GeneralRe: a bother about windows service Pin
jinjiashan24-Sep-09 0:04
jinjiashan24-Sep-09 0:04 
AnswerRe: a bother about windows service Pin
Rolf Kristensen26-Sep-09 7:49
Rolf Kristensen26-Sep-09 7:49 
GeneralRe: a bother about windows service Pin
jinjiashan27-Sep-09 13:29
jinjiashan27-Sep-09 13:29 
QuestionProblem with initializing Main args! Pin
Largo6523-Sep-09 12:58
Largo6523-Sep-09 12:58 
AnswerRe: Problem with initializing Main args! Pin
Game-point23-Sep-09 18:40
Game-point23-Sep-09 18:40 
AnswerRe: Problem with initializing Main args! Pin
Saurabh.Garg23-Sep-09 18:56
Saurabh.Garg23-Sep-09 18:56 
AnswerRe: Problem with initializing Main args! Pin
«_Superman_»23-Sep-09 19:23
professional«_Superman_»23-Sep-09 19:23 

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.