472,988 Members | 2,530 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 472,988 software developers and data experts.

DHTML editing control C# problem

I'm having problems using the DHTML control's ExecCommand() in C#.

Here are the parameters ExecCommand takes:
object.ExecCommand cmdID [, cmdExecOpt] [, pInVar]
Intellisense tells me I want to us a "ByRef pInVar as Object"

The SDK says pInVar is:
pInVar

Input parameter for the command, if any. This parameter is not

required >for all commands. If it is included, the cmdExecOpt parameter
must be >included as well.

I have no idea what to pass it! I don't have this problem with Visual
Basic because Visual Basic allows for optional parameters! Please help!
Nov 13 '05 #1
2 8953
some commands require this third parameter, so you can
pass it as an object. for example, if you wanted to save
the document to a file, you would write
object fileNameObj = "c:\\somefile";
object.execCommand("SaveAs", false, fileNameObj);

if the command does not require this parameter, you can
use
System.Reflection.Missing.Value missingValue =
System.Reflection.Missing.Value;
and pass that in. I think you can also pass in a null
object.
hope that helps.
-michael
-----Original Message-----
I'm having problems using the DHTML control's ExecCommand () in C#.
Here are the parameters ExecCommand takes:
> object.ExecCommand cmdID [, cmdExecOpt] [, pInVar]
Intellisense tells me I want to us a "ByRef pInVar as

Object"
The SDK says pInVar is:
pInVar

Input parameter for the command, if any. This
parameter is notrequired >for all commands. If it is included, the cmdExecOpt parametermust be >included as well.

I have no idea what to pass it! I don't have this problem with VisualBasic because Visual Basic allows for optional parameters! Please help!

.

Nov 13 '05 #2
Try null. ;)

Jon

"len smith" <ig******@yahoo.com> wrote in message
news:FJ**************@nwrdny01.gnilink.net...
I'm having problems using the DHTML control's ExecCommand() in C#.

Here are the parameters ExecCommand takes:
> object.ExecCommand cmdID [, cmdExecOpt] [, pInVar]


Intellisense tells me I want to us a "ByRef pInVar as Object"

The SDK says pInVar is:
>pInVar
>
>Input parameter for the command, if any. This parameter is not

required >for all commands. If it is included, the cmdExecOpt parameter
must be >included as well.

I have no idea what to pass it! I don't have this problem with Visual
Basic because Visual Basic allows for optional parameters! Please help!

Nov 13 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: Jane Doe | last post by:
Hi, I'm currently looking for the different solutions to include a WYSIWYG editor in a dedicated VB application. Ideally, it should read/write HTML, but I'm willing to use one that uses RTF if I...
0
by: ken | last post by:
Hi, I want to use DHTML Edit Control for ie5 in my database. Its basically for text formating like bold, underline ... I will store the HTML code in a memo field and in the input form the users...
1
by: dd | last post by:
Cannot figure it out. If somebody can help, I'd appreciate it. I am using DHTML Edit control from C# for editing HTML pages. I am trying to insert a table into an HTML page and I keep getting an...
0
by: Margarita | last post by:
Where can i find information about customization (on C#) the DHTML Editing Component ActiveX Control . I want to implement some(2,3,4...) input elements for data with one ToolBar on the...
6
by: | last post by:
Hi all, can anyone recommend a good html editing control for asp.net? Kind of like the ones web email sites have on their compose page e.g. hotmail, yahoo etc. TIA!
7
by: Mike | last post by:
Hello, I am developing a simple web editor to enable my users to update their websites and add simple formatting to the text. The page content is recovered from a SQL Server database and...
0
by: afislage | last post by:
Hallo, ich benutze das DHTML Edit Control mit C#. Der Editor erzeugt zum Beispiel folgendes: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"> <html><head> <meta...
0
by: priyamtheone | last post by:
I have a datagridview with a button column as one of its column collection. The width of the button column is say 50 but the problem is the button editing control within the cell of that column is...
0
by: lllomh | last post by:
Define the method first this.state = { buttonBackgroundColor: 'green', isBlinking: false, // A new status is added to identify whether the button is blinking or not } autoStart=()=>{
2
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 4 Oct 2023 starting at 18:00 UK time (6PM UTC+1) and finishing at about 19:15 (7.15PM) The start time is equivalent to 19:00 (7PM) in Central...
0
by: Aliciasmith | last post by:
In an age dominated by smartphones, having a mobile app for your business is no longer an option; it's a necessity. Whether you're a startup or an established enterprise, finding the right mobile app...
0
tracyyun
by: tracyyun | last post by:
Hello everyone, I have a question and would like some advice on network connectivity. I have one computer connected to my router via WiFi, but I have two other computers that I want to be able to...
4
NeoPa
by: NeoPa | last post by:
Hello everyone. I find myself stuck trying to find the VBA way to get Access to create a PDF of the currently-selected (and open) object (Form or Report). I know it can be done by selecting :...
1
by: Teri B | last post by:
Hi, I have created a sub-form Roles. In my course form the user selects the roles assigned to the course. 0ne-to-many. One course many roles. Then I created a report based on the Course form and...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 1 Nov 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM) Please note that the UK and Europe revert to winter time on...
0
isladogs
by: isladogs | last post by:
The next online meeting of the Access Europe User Group will be on Wednesday 6 Dec 2023 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, Mike...
4
by: GKJR | last post by:
Does anyone have a recommendation to build a standalone application to replace an Access database? I have my bookkeeping software I developed in Access that I would like to make available to other...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.