Click here to Skip to main content
15,914,162 members
Home / Discussions / COM
   

COM

 
QuestionHow do I pass MySQL connection ID to COM using VC++ 9.0? Pin
Ger Hayden30-Sep-08 7:22
Ger Hayden30-Sep-08 7:22 
QuestionCOM add in for MS Office Outlook? Pin
maui_mike29-Sep-08 20:19
maui_mike29-Sep-08 20:19 
QuestionMMDeviceEnumerator registration problem Pin
punitkumar2629-Sep-08 13:09
punitkumar2629-Sep-08 13:09 
QuestionUsing C# and COM to connect to a Server Pin
SRogers8829-Sep-08 7:44
SRogers8829-Sep-08 7:44 
AnswerRe: Using C# and COM to connect to a Server Pin
alchong8-Oct-08 14:19
alchong8-Oct-08 14:19 
QuestionGet COM pointer to running instance of Yahoo Messenger. Pin
u0m326-Sep-08 7:02
u0m326-Sep-08 7:02 
QuestionHow to Include MFC Datatypes in IDl ? Pin
narayanagvs25-Sep-08 23:20
narayanagvs25-Sep-08 23:20 
QuestionExtra Chart in OWC11 (ASP)! Pin
marlboroguy5824-Sep-08 1:35
marlboroguy5824-Sep-08 1:35 
Hi,
I m using OWC11 with ASP, Trying to draw simple Bar graph using data from SQL database, i managed to draw the chart but i also have an extra chart(to the right) with it. Please let me know how to get rid of it.

here is the piece of code that does the charting
Set objRS1  = Server.CreateObject("ADODB.Recordset")

            objRS1.Open strSQLStatement, objADODB, 1
            'Response.Write("The value of " & strColName & "=" & objRS1(0))
            set objCSpace = Server.CreateObject("OWC11.ChartSpace")
            'set up chart and properties
            set objChart = objCSpace.Charts.Add(0)
            set objConstants = objCSpace.Constants

            'create a clustered column chart
            objChart.Type = objConstants.chChartTypeColumn3D
            
            
            'add a legend
            objChart.HasLegend = False
            
            'objChart.ShowFilterHeaders = False
            set objCSpace.DataSource = objRS1

            objCSpace.HasMultipleCharts = False
            objCSpace.HasChartSpaceLegend = False
            objCSpace.HasChartSpaceTitle = False
            objCSpace.DisplayFieldButtons = false
            objCSpace.MinorVersion =
            
            'set the data points and categories
            'objChart.SetData objConstants.chDimSeriesNames, 0, "age"
            objChart.SetData objConstants.chDimCategories, 0, "Level"
            objChart.SetData objConstants.chDimValues, 0, "NOF"

            'set up some additional properties
            'add and format the chart title
            objChart.HasTitle = True
            objChart.Title.Caption = "TICS Summary"
            set objFont = objChart.Title.Font
            objFont.Name = "Tahoma"
            objFont.Size = 10
            objFont.Bold = True

            'add and format a title to the category axis
            set objAxis = objChart.Axes(objConstants.chAxisPositionBottom)
            objAxis.HasTitle = True
            objAxis.Title.Caption = "TICS Levels"
            set objFont = objAxis.Title.Font
            objFont.Name = "Tahoma"
            objFont.Size = 8
            objFont.Bold = True

            'add and format a title to the value axis
            set objAxis = objChart.Axes(objConstants.chAxisPositionLeft)
            objAxis.HasTitle = True
            objAxis.Title.Caption = "No. Of Files"
            set objFont = objAxis.Title.Font
            objFont.Name = "Tahoma"
            objFont.Size = 8
            objFont.Bold = True


            'Save the current chart to a GIF file with a temporary
            'filename using the FSO
            set fso = Server.CreateObject("Scripting.FileSystemObject")
            strFileName = fso.GetTempName()
            GifFileName = strFileName
            strFileName = Server.MapPath(".") & "\" & strFileName
            RenName = strFileName
            RenName = replace (RenName, ".tmp", ".gif")
            'Response.Write(GifFileName)
            GifFileName = replace (GifFileName, ".tmp", ".gif")
            objCSpace.ExportPicture RenName, "gif", 800, 400
            'fso.MoveFile strFileName,GifFileName
            Response.Write("<img src=" & GifFileName & ">")
            'Use On Error Resume Next to make sure we eventually delete
            'the temporary GIF file even if something fails in the next
            'couple of functions
            on error resume next

            'The GIF file has been created. Return the contents of the
            'GIF file as binary data using the BinaryFileStream COM object
            set objBinaryFile = Server.CreateObject("BinaryFileStream.Object")
            Response.BinaryWrite objBinaryFile.GetFileBytes(CStr(strFileName))

            'Delete the GIF file since it is no longer needed
            objBinaryFile.DeleteFile CStr(RenName)

            'clear variables
            set objBinaryFile = nothing
            set FSO = nothing
            set objCSpace = nothing
</img>



Please Help!!!
QuestionWord Automation Pin
g_dev23-Sep-08 18:37
g_dev23-Sep-08 18:37 
AnswerRe: Word Automation Pin
kattah28-Jan-09 13:03
kattah28-Jan-09 13:03 
QuestionWord Automation Pin
g_dev23-Sep-08 18:36
g_dev23-Sep-08 18:36 
Questionvc++ and .net Runtime error Pin
balu1234522-Sep-08 9:15
balu1234522-Sep-08 9:15 
QuestionSynchronization concepts.. [modified] Pin
kDevloper21-Sep-08 21:13
kDevloper21-Sep-08 21:13 
AnswerRe: Synchronization concepts.. Pin
John_Adams3-Oct-08 12:47
John_Adams3-Oct-08 12:47 
GeneralRe: Synchronization concepts.. Pin
kDevloper3-Oct-08 18:25
kDevloper3-Oct-08 18:25 
QuestionHow to draw sth. on owner flash ole container Pin
61934514220-Sep-08 14:38
61934514220-Sep-08 14:38 
QuestionDynamic DLL creation Pin
Member 400849215-Sep-08 3:11
Member 400849215-Sep-08 3:11 
QuestionC++ and COM Pin
bhogavalli suresh14-Sep-08 19:19
bhogavalli suresh14-Sep-08 19:19 
AnswerRe: C++ and COM Pin
Lim Bio Liong14-Sep-08 21:44
Lim Bio Liong14-Sep-08 21:44 
GeneralRe: C++ and COM Pin
Ju@ncho19-Sep-08 9:57
Ju@ncho19-Sep-08 9:57 
AnswerRe: C++ and COM Pin
Jagdish Vasani19-Sep-08 21:34
Jagdish Vasani19-Sep-08 21:34 
QuestionError loading type library/DLL Pin
Sara1239-Sep-08 0:38
Sara1239-Sep-08 0:38 
AnswerRe: Error loading type library/DLL Pin
Lim Bio Liong9-Sep-08 1:35
Lim Bio Liong9-Sep-08 1:35 
GeneralRe: Error loading type library/DLL Pin
Sara1239-Sep-08 18:55
Sara1239-Sep-08 18:55 
GeneralRe: Error loading type library/DLL Pin
Lim Bio Liong9-Sep-08 19:23
Lim Bio Liong9-Sep-08 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.