Click here to Skip to main content
15,921,697 members
Home / Discussions / C#
   

C#

 
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 
GeneralRe: A question about VBA and C# Pin
Heath Stewart23-Jun-04 4:06
protectorHeath Stewart23-Jun-04 4:06 
Anything you can do in VB6 (and older) you can do in a managed languages that supports COM interoperability (just about all of them, including C# and VB.NET). It's all based on OLE/COM automation described in a typelib that you can create an interop assembly from. This interop assembly is also known as a Runtime Callable Wrapper (RCW), which marshals calls from managed to unmanaged.

Unfortunately, though, it's not always as clear what to do as it is with VB (pre-.NET) because not all the type information is reserved. Properties and parameters start being the most basic class: object.

The primary interop assemblies (PIA - typically assemblies created by the developers of the corresponding typelib, and registered in a way that when you reference that typelib the PIA is used automatically instead of a new one being generated) for Office 2003 declare a DocumentWindow.View property, of type View. View.Paste is defined, so you would use:
ppApp.ActiveWindow.View.Paste();



 

Microsoft MVP, Visual C#
My Articles
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 
GeneralRe: Show tables from sql database Pin
Heath Stewart22-Jun-04 20:44
protectorHeath Stewart22-Jun-04 20:44 

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.