Click here to Skip to main content
15,905,590 members
Home / Discussions / C#
   

C#

 
QuestionGraphic problem? Pin
Alan Zhao7-May-04 11:48
Alan Zhao7-May-04 11:48 
AnswerRe: Graphic problem? Pin
kayhustle7-May-04 14:19
kayhustle7-May-04 14:19 
GeneralUpload Very Large Files to SQL Server Pin
Adam Hable7-May-04 11:42
Adam Hable7-May-04 11:42 
GeneralRe: Upload Very Large Files to SQL Server Pin
leppie7-May-04 13:49
leppie7-May-04 13:49 
GeneralRe: Upload Very Large Files to SQL Server Pin
Colin Angus Mackay7-May-04 23:59
Colin Angus Mackay7-May-04 23:59 
Questionhow can I get post or get data that send by "Microsoft Web Browser" Pin
Renegade_c7-May-04 11:12
Renegade_c7-May-04 11:12 
GeneralPassing Public int Variable to Win Form Pin
Dave Brighton7-May-04 10:53
Dave Brighton7-May-04 10:53 
GeneralRe: Passing Public int Variable to Win Form Pin
Colin Angus Mackay7-May-04 13:02
Colin Angus Mackay7-May-04 13:02 
GeneralRe: Passing Public int Variable to Win Form Pin
Dave Brighton7-May-04 14:11
Dave Brighton7-May-04 14:11 
GeneralRe: Passing Public int Variable to Win Form Pin
Colin Angus Mackay7-May-04 23:49
Colin Angus Mackay7-May-04 23:49 
GeneralRe: Passing Public int Variable to Win Form Pin
Dave Brighton8-May-04 6:12
Dave Brighton8-May-04 6:12 
GeneralRe: Passing Public int Variable to Win Form Pin
Colin Angus Mackay8-May-04 6:48
Colin Angus Mackay8-May-04 6:48 
GeneralChanging the fugly Setup Wizard icon in MSI files. Pin
Tony Archer7-May-04 9:14
Tony Archer7-May-04 9:14 
GeneralRe: Changing the fugly Setup Wizard icon in MSI files. Pin
Heath Stewart7-May-04 9:45
protectorHeath Stewart7-May-04 9:45 
GeneralRe: Changing the fugly Setup Wizard icon in MSI files. Pin
Tony Archer7-May-04 13:54
Tony Archer7-May-04 13:54 
GeneralPassing collection via Web Services Pin
Diego F.7-May-04 8:32
Diego F.7-May-04 8:32 
GeneralRe: Passing collection via Web Services Pin
Heath Stewart7-May-04 9:40
protectorHeath Stewart7-May-04 9:40 
GeneralRe: Passing collection via Web Services Pin
Diego F.7-May-04 12:33
Diego F.7-May-04 12:33 
GeneralRe: Passing collection via Web Services Pin
Heath Stewart8-May-04 19:27
protectorHeath Stewart8-May-04 19:27 
GeneralRe: Passing collection via Web Services Pin
Dave Brighton21-Jun-04 1:15
Dave Brighton21-Jun-04 1:15 
GeneralPassing params to an embedded control in IE Pin
TigerNinja_7-May-04 8:22
TigerNinja_7-May-04 8:22 
GeneralRe: Passing params to an embedded control in IE Pin
Heath Stewart7-May-04 9:37
protectorHeath Stewart7-May-04 9:37 
First, your classid attribute should not include "http:". Use a relative path or an absolute path. Only include "http://" plus the host name if you want to use a control from another site (in which case that site needs to be configured in the Url evidence for the code access security group that must be created - all covered in my article I linked the other day.

On your class interface, declare a property of type object or IWebBrowser2 (requires that you reference the shdocvw.dll native COM server, which creates an interop assembly (default is typically Interop.SHDocVw.dll) that must be in the same directory (or if you read the documentation about the assembly binding configuration settings - you can figure out other places to put it) as the PrintConfig.dll.

Make sure you implement this property in your user control.

Then, in your .aspx page for the onload event of your OBJECT (to make sure it's loaded first, otherwise an error will occur), set that property to the window object of the web browser.

You must use a dispatch interface or the scripting engine cannot access the object model. My article I linked also covers this, as well as why auto-generated class interfaces should not be used (declare them explicitly and implement them as the first interface in your class declaration).

 

Microsoft MVP, Visual C#
My Articles
GeneralRe: Passing params to an embedded control in IE Pin
TigerNinja_7-May-04 10:57
TigerNinja_7-May-04 10:57 
GeneralRe: Passing params to an embedded control in IE Pin
TigerNinja_18-May-04 8:34
TigerNinja_18-May-04 8:34 
GeneralRe: Passing params to an embedded control in IE Pin
Heath Stewart18-May-04 9:24
protectorHeath Stewart18-May-04 9:24 

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.