473,387 Members | 1,535 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,387 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 8966
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

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.