Click here to Skip to main content
16,007,809 members
Home / Discussions / C#
   

C#

 
GeneralRe: Required permissions cannot be acquired Pin
Heath Stewart23-Jun-04 4:19
protectorHeath Stewart23-Jun-04 4:19 
GeneralRe: Required permissions cannot be acquired Pin
Daniel Zaharia23-Jun-04 4:37
Daniel Zaharia23-Jun-04 4:37 
GeneralRe: Required permissions cannot be acquired Pin
Daniel Zaharia23-Jun-04 2:06
Daniel Zaharia23-Jun-04 2:06 
GeneralRegistration page woes Pin
diptea22-Jun-04 23:18
diptea22-Jun-04 23:18 
GeneralRe: Registration page woes Pin
Colin Angus Mackay22-Jun-04 23:39
Colin Angus Mackay22-Jun-04 23:39 
GeneralTo add a style in datagrid Pin
HowRU22-Jun-04 23:05
HowRU22-Jun-04 23:05 
GeneralRe: To add a style in datagrid Pin
Dave Kreskowiak23-Jun-04 4:05
mveDave Kreskowiak23-Jun-04 4:05 
GeneralA question about VBA and C# Pin
Member 94012522-Jun-04 22:34
Member 94012522-Jun-04 22:34 
I use PowerPoint 2003 to record the following macro:
<br />
Sub Macro1()<br />
<br />
    Presentations.Add WithWindow:=msoTrue<br />
    ActiveWindow.View.GotoSlide Index:=ActivePresentation.Slides.Add(Index:=1, Layout:=ppLayoutText).SlideIndex<br />
    ActiveWindow.Selection.SlideRange.Shapes.AddPicture(FileName:="C:\SAVE\1_files\PSPage1.bmp", LinkToFile:=msoFalse, SaveWithDocument:=msoTrue, Left:=9, Top:=22, Width:=702, Height:=496).Select<br />
    ActiveWindow.View.Paste<br />
    With ActiveWindow.Selection.ShapeRange<br />
        .IncrementLeft 165.88<br />
        .IncrementTop 79.88<br />
    End With<br />
End Sub<br />


Now I want to implement it in my C# project,
<br />
ppApp = new PowerPoint.Application();<br />
objPres = ppApp.Presentations.Add(MsoTriState.msoTrue);<br />
objSlide = objPres.Slides.Add(1, PowerPoint.PpSlideLayout.ppLayoutText);<br />
objShape = objSlide.Shapes.AddPicture:="C:\\SAVE\\1_files\\PSPage1.bmp",MsoTriState.msoFalse,MsoTriState.msoTrue,9,22,702,496);<br />

I can add a slide and insert the Picture,
but I don't know how to do
ActiveWindow.View.Paste
to paste the object I write into clipboard,
Can anyone tell me how to do this in C#...??
Thanks a lot !!
GeneralRe: A question about VBA and C# Pin
Heath Stewart23-Jun-04 4:06
protectorHeath Stewart23-Jun-04 4:06 
GeneralQ: Coloring Schemes Pin
yoaz22-Jun-04 22:08
yoaz22-Jun-04 22:08 
GeneralRe: Q: Coloring Schemes Pin
Daniel M. Edwards23-Jun-04 3:02
Daniel M. Edwards23-Jun-04 3:02 
GeneralRe: Q: Coloring Schemes Pin
yoaz23-Jun-04 4:29
yoaz23-Jun-04 4:29 
Questionhow to add a style in datagrid Pin
HowRU22-Jun-04 21:46
HowRU22-Jun-04 21:46 
AnswerRe: how to add a style in datagrid Pin
dabuskol22-Jun-04 23:42
dabuskol22-Jun-04 23:42 
Generalmove AxPdfLib.AxPdf Pin
fatidarya22-Jun-04 21:29
fatidarya22-Jun-04 21:29 
GeneralRe: move AxPdfLib.AxPdf Pin
Heath Stewart23-Jun-04 3:19
protectorHeath Stewart23-Jun-04 3:19 
GeneralRe: move AxPdfLib.AxPdf Pin
fatidarya25-Jun-04 19:02
fatidarya25-Jun-04 19:02 
GeneralRe: move AxPdfLib.AxPdf Pin
Heath Stewart26-Jun-04 13:59
protectorHeath Stewart26-Jun-04 13:59 
Generalserializing userControl BackGroundimage Pin
fatidarya22-Jun-04 21:06
fatidarya22-Jun-04 21:06 
GeneralRe: serializing userControl BackGroundimage Pin
Heath Stewart22-Jun-04 21:12
protectorHeath Stewart22-Jun-04 21:12 
GeneralRe: serializing userControl BackGroundimage Pin
fatidarya22-Jun-04 21:54
fatidarya22-Jun-04 21:54 
GeneralRe: serializing userControl BackGroundimage Pin
Heath Stewart23-Jun-04 3:54
protectorHeath Stewart23-Jun-04 3:54 
GeneralShow tables from sql database Pin
vcorn22-Jun-04 20:02
vcorn22-Jun-04 20:02 
GeneralRe: Show tables from sql database Pin
Heath Stewart22-Jun-04 20:26
protectorHeath Stewart22-Jun-04 20:26 
GeneralRe: Show tables from sql database Pin
vcorn22-Jun-04 20:36
vcorn22-Jun-04 20:36 

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.