Click here to Skip to main content
15,886,362 members
Home / Discussions / ASP.NET
   

ASP.NET

 
AnswerRe: javascript written in code behind not working when update panel is used Pin
Christian Graus17-May-09 23:33
protectorChristian Graus17-May-09 23:33 
GeneralRe: javascript written in code behind not working when update panel is used Pin
mithun narayanan17-May-09 23:38
mithun narayanan17-May-09 23:38 
GeneralRe: javascript written in code behind not working when update panel is used [modified] Pin
Ramesh Swaminathan17-May-09 23:45
Ramesh Swaminathan17-May-09 23:45 
AnswerRe: javascript written in code behind not working when update panel is used Pin
ais0717-May-09 23:52
ais0717-May-09 23:52 
GeneralRe: javascript written in code behind not working when update panel is used Pin
mithun narayanan18-May-09 0:23
mithun narayanan18-May-09 0:23 
AnswerRe: javascript written in code behind not working when update panel is used Pin
ais0718-May-09 0:29
ais0718-May-09 0:29 
GeneralRe: javascript written in code behind not working when update panel is used Pin
mithun narayanan18-May-09 2:25
mithun narayanan18-May-09 2:25 
Questioncreate a custom button in microsott word Pin
member2717-May-09 23:09
member2717-May-09 23:09 
Hi all,



I want to create a custom button in menu of microsdoft word..can any one help me ??


i have wrote the code to open a word and just to create a button but i want the custom button in menu of the word document


Dim oWord As Word.Application
Dim oDoc As New Word.Document
'Dim oTable As Word.Table
Dim oPara1 As Word.Paragraph
Dim menu As Word.CustomLabel
Dim oPara2 As Word.Paragraph
Dim sCode As String
Dim shp As Word.InlineShape
Try
'Start Word and open the document template.
oWord = CreateObject("Word.Application")

oWord.Visible = True

oDoc = oWord.Documents.Add
oPara1 = oDoc.Content.Paragraphs.Add
oDoc.Windows.Add("dd")
oPara1.Range.Text = " Test Document"
oPara1.Range.Font.Bold = True

oPara1.Range.InsertParagraphAfter()
oPara2 = oDoc.Content.Paragraphs.Add


''''''''Button Code
shp = oDoc.Content.InlineShapes.AddOLEControl(ClassType:="Forms.CommandButton.1")
shp.OLEFormat.Object.Caption = "Click Here"
'shp.OLEFormat.DisplayAsIcon = True

sCode = "Private Sub " & shp.OLEFormat.Object.Name & "_Click()" & vbCrLf & _
" MsgBox ""You Clicked the CommandButton""" & vbCrLf & _
"End Sub"
'oWord.VBE.VBProjects().VBE.ActiveVBProject.CodeModule.AddFromString(sCode)
oWord.VBE.VBProjects.VBComponents("ThisDocument").CodeModule.AddFromString(sCode)
shp.OLEFormat.Object.Caption = "Click Here"
AnswerRe: create a custom button in microsott word Pin
Christian Graus17-May-09 23:34
protectorChristian Graus17-May-09 23:34 
GeneralRe: create a custom button in microsott word Pin
member2717-May-09 23:38
member2717-May-09 23:38 
GeneralRe: create a custom button in microsott word Pin
Ashfield18-May-09 1:27
Ashfield18-May-09 1:27 
GeneralRe: create a custom button in microsott word Pin
member2719-May-09 2:36
member2719-May-09 2:36 
GeneralRe: create a custom button in microsott word Pin
Ashfield19-May-09 7:49
Ashfield19-May-09 7:49 
Questionchart.export thows com exception Pin
Reddy Prakash17-May-09 23:05
Reddy Prakash17-May-09 23:05 
QuestionGridview's cell values and PageMethods Pin
cocoonwls17-May-09 22:12
cocoonwls17-May-09 22:12 
AnswerRe: Gridview's cell values and PageMethods Pin
Manas Bhardwaj17-May-09 22:18
professionalManas Bhardwaj17-May-09 22:18 
GeneralRe: Gridview's cell values and PageMethods Pin
cocoonwls17-May-09 22:43
cocoonwls17-May-09 22:43 
GeneralRe: Gridview's cell values and PageMethods Pin
Ramesh Swaminathan17-May-09 22:58
Ramesh Swaminathan17-May-09 22:58 
GeneralRe: Gridview's cell values and PageMethods Pin
cocoonwls17-May-09 23:15
cocoonwls17-May-09 23:15 
GeneralRe: Gridview's cell values and PageMethods Pin
Ramesh Swaminathan17-May-09 23:39
Ramesh Swaminathan17-May-09 23:39 
QuestionUpdate Panel(Ajax)Question Pin
Vimalsoft(Pty) Ltd17-May-09 21:49
professionalVimalsoft(Pty) Ltd17-May-09 21:49 
QuestionUpdate using details view [modified] Pin
M. K. BASHER17-May-09 21:44
M. K. BASHER17-May-09 21:44 
Questionproblem in 'window.confirm' Pin
souravghosh1817-May-09 20:30
souravghosh1817-May-09 20:30 
AnswerRe: problem in 'window.confirm' Pin
Vasudevan Deepak Kumar17-May-09 20:53
Vasudevan Deepak Kumar17-May-09 20:53 
GeneralRe: problem in 'window.confirm' Pin
souravghosh1817-May-09 20:58
souravghosh1817-May-09 20:58 

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.