Click here to Skip to main content
16,004,944 members
Home / Discussions / COM
   

COM

 
QuestionCLSID Pin
Rose8116-Jun-07 16:14
Rose8116-Jun-07 16:14 
QuestionThird-party COM Pin
Gregory Mermoud16-Jun-07 14:27
Gregory Mermoud16-Jun-07 14:27 
QuestionDLL Registration Pin
Rose8116-Jun-07 2:21
Rose8116-Jun-07 2:21 
Questiontype library generation Pin
ttomanek14-Jun-07 21:53
ttomanek14-Jun-07 21:53 
AnswerRe: type library generation Pin
ttomanek15-Jun-07 3:04
ttomanek15-Jun-07 3:04 
QuestionExport to Excel via VB.NET 1.1 Not Working [modified] Pin
Brendan Vogt14-Jun-07 20:48
Brendan Vogt14-Jun-07 20:48 
AnswerRe: Export to Excel via VB.NET 1.1 Not Working Pin
HakunaMatada20-Jun-07 19:42
HakunaMatada20-Jun-07 19:42 
Questioncode for representing "Events" for a custom control in classic ASP Pin
MurtyINM14-Jun-07 19:59
MurtyINM14-Jun-07 19:59 
Hi to All,

I created one ClassLibrary in .Net using VB.Net, which is configured for COM InterOP. In this Library, I created 3 classes and below they are.

(1) Document class: which is having 2 properties
(a) AddPage : function for adding a Page to the Document.
(b) DrawToFile : method which 'll draw the output to the specified file.
(2) Page class: Having a AddLabel function used for adding a Label to the Page.
(3) Label class: having 2 functions and 1 Event.
(a) Text function: which is used to Set or Get the Text of the Label.
(b) TextColor function , which is used to Set or Get the Text of the Label.
(c) TextColorChanged event


Now, In Vb 6, by referencing the TypeLibrary for the .Net ClassLibrary, I am able to code as I required. And the code , what I have written in Vb 6 is below.


Public WithEvents mylabel As ClassLibrary1.Label
Public doc As New Document

Private Sub Command1_Click()
Dim page As page
Set page = doc.AddPage
Set mylabel = page.AddLabel("ceTe Software,Mysore,India", 10, 10, 300, 20)
doc.DrawToFile ("c:\t.pdf")
End Sub

Private Sub Command2_Click()
mylabel_TextColorChanged (Text1.Text)
doc.DrawToFile ("c:\t.pdf")
End Sub

Private Sub mylabel_TextColorChanged(ByVal value As String)
mylabel.TextColor = value
End Sub


My need is to implement the same in Classic ASP.

Anyone, write the code in Classic ASP for me, as I donot know how to do this in Classic ASP.

Thanks in Advance,
Murty
Questionwhy can't be CoCreateInstance after install to COM+ app? Pin
Chen Jiadong13-Jun-07 20:56
Chen Jiadong13-Jun-07 20:56 
QuestionConnection points for Chat server using ATL/COM Pin
Raj Prathap12-Jun-07 20:37
Raj Prathap12-Jun-07 20:37 
QuestionA bit of help requested for an IE BHO Pin
keesp12-Jun-07 11:48
keesp12-Jun-07 11:48 
QuestionError info of FileSystemObject Pin
Lane Yu11-Jun-07 4:12
Lane Yu11-Jun-07 4:12 
AnswerRe: Error info of FileSystemObject Pin
Steve S11-Jun-07 6:47
Steve S11-Jun-07 6:47 
GeneralRe: Error info of FileSystemObject Pin
Lane Yu12-Jun-07 2:47
Lane Yu12-Jun-07 2:47 
GeneralRe: Error info of FileSystemObject Pin
Steve S13-Jun-07 1:33
Steve S13-Jun-07 1:33 
QuestionCOM Error :( Pin
gvanto7-Jun-07 14:36
gvanto7-Jun-07 14:36 
AnswerRe: COM Error :( Pin
Stephen Hewitt7-Jun-07 15:05
Stephen Hewitt7-Jun-07 15:05 
QuestionRe: COM Error :( Pin
gvanto7-Jun-07 15:42
gvanto7-Jun-07 15:42 
AnswerRe: COM Error :( Pin
Stephen Hewitt7-Jun-07 15:46
Stephen Hewitt7-Jun-07 15:46 
QuestionRe: COM Error :( Pin
gvanto7-Jun-07 19:18
gvanto7-Jun-07 19:18 
AnswerRe: COM Error :( Pin
Stephen Hewitt7-Jun-07 19:31
Stephen Hewitt7-Jun-07 19:31 
QuestionQueued Component Pin
SoftDeveloper6-Jun-07 2:41
SoftDeveloper6-Jun-07 2:41 
QuestionHow to use my COM object in a VS2003 - MFC exe? Pin
jayart5-Jun-07 6:32
jayart5-Jun-07 6:32 
QuestionCOM Delegation in ASP.NET Pin
Talal Sultan4-Jun-07 23:45
Talal Sultan4-Jun-07 23:45 
QuestionAbout COM Pin
vijay_834-Jun-07 19:13
vijay_834-Jun-07 19:13 

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.