|
Hello All,
I'm looking for the opensouce library for coloring the HTML and Javascript. It would be great if this library is written in C#. I would like to use it for one of my opensource C#.
Thanks in advance.
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Start writing it yourself and maybe include it here as an article. I am sure others would find it interesting
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
|
|
|
|
|
Okay. Yeah. I should try... Thanks for your suggestion...
Thanks and Regards,
Michael Sync ( Blog: http://michaelsync.net)
If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you.
|
|
|
|
|
Hi all,
I am a novice to the Exchange Server 2003. I am trying to create a meeting request using CDO, MAPI and ADODB using C#. My exchange server is 192.168.78.57. I have created two Active Directory Users viz. abc@testingserver.com and xyz@testingserver.com.
If I try to log into the Exchange Server using abc@testing server.com, I get an error stating that "You do not have permission to log on. [Microsoft Exchange Server Information Store - [MAPI_E_FAILONEPROVIDER(8004011D)]]" when the statement "mapiSession.Logon(....)" is executed.
To overcome this error, I used administrator@testingserver.com. After using this id for login purpose, I was able to get rid of the above error, but at the time of sending the appointment using "appointmentItem.Send(false, false, 0);" I am getting an another error "[Collaboration Data Objects - [MAPI_E_NO_SUPPORT(80040102)]]"
Please find herewith my code below
Is that I am missing something in this code??
Please Help me somebody as this is a bit urgent.
Kind Regards
Pratik
public void CreateNewMeetingRequest()
{
try
{
string exchangeServer = "192.168.78.57";
string currentUserMailBoxName = "abc@testingserver.com";
object profileInfo = (object)exchangeServer + "\n" + currentUserMailBoxName;
_Session mapiSession = new SessionClass();
object emptyObject = Missing.Value;
mapiSession.Logon(emptyObject, emptyObject, false, false, emptyObject, emptyObject, profileInfo);
MAPI.Folder folder = (MAPI.Folder) mapiSession.GetDefaultFolder(CdoDefaultFolderTypes.CdoDefaultFolderCalendar);
MAPI.Messages folderMessages = (Messages)folder.Messages;
MAPI.AppointmentItem appointmentItem = (MAPI.AppointmentItem) folderMessages.Add(emptyObject, emptyObject, emptyObject, emptyObject);
Recipients appointmentRecipient = (Recipients)appointmentItem.Recipients;
appointmentRecipient.AddMultiple("xyz@testingserver.com", CdoRecipientType.CdoTo);
appointmentRecipient.Resolve(false);
appointmentItem.ConversationIndex = mapiSession.CreateConversationIndex(Missing.Value);
appointmentItem.ConversationTopic = String.Empty;
appointmentItem.EndTime = DateTime.Today.AddHours(5.0);
appointmentItem.Location = "XYZ";
appointmentItem.Subject = "Subject - Test Appointment";
appointmentItem.Text = "Text - Test Appointment";
appointmentItem.StartTime = DateTime.Today;
appointmentItem.Sender = (MAPI.AddressEntry)mapiSession.CurrentUser;
appointmentItem.Send(false, false, 0);
mapiSession.Logoff();
folder = null;
folderMessages = null;
appointmentItem = null;
appointmentRecipient = null;
mapiSession = null;
}
catch (Exception exception)
{
Console.Write(exception.Message);
}
}
Thanking you in Advance
Regards
Pratik Shah
|
|
|
|
|
I am having difficulty filtering IP Addresses using IPAddress.TryParse()
I am trying to get upto speed with .NET programming, running MSVS 2005 .NET on Vista Home Pro.
System Config Notebook one ethernet + built-in WiFi.
On form load I request Internet Host Info and aquire numerous addresses, and add them to the listbox for selection
later.
The problem some do not reflect a true IP address are varied lengths some look like partial mac adresses etc, and are invalid for speific reasons hense the need to filter them.
Having stepped through debug I am now assuming the reason IPAddress.TryParse() is not filtering them is because the values are valid based on the AddressList[] static members:
Any, Broadcast, IPv6Any ... the list continues. Identifying IPv6Loopback as being the problem for the following scenario because IPv6Loopback contains {::1}
For simplicity, with no ethernet connection & WiFi disabled; I have 2 items in the listbox:
::1 (I regard as a problem)
127.0.0.1 (Loopback no problem)
The code:
string strIP = null;
IPHostEntry hostEntry = Dns.GetHostEntry(Dns.GetHostName());
if (hostEntry.AddressList.Length > 0)
{
foreach (IPAddress ip in hostEntry.AddressList)
{
strIP = ip.ToString();
IPAddress tmpAddress;
if (IPAddress.TryParse(strIP, out tmpAddress))
{
socketListBox.Items.Add(strIP);
}
}
}
If my assumtion is correct how can I filter the items which cause phyical issues.
Regards
dotman1
|
|
|
|
|
use Dns.Resolve instead og Dns.GetHostEntry method
however the method is obsolete but it works fine
good luck
|
|
|
|
|
Thank you, this worked well.
Regards
dotman1
|
|
|
|
|
Yeah it works fine now but it'll probably get blasted in a future version of the framework. If a method is marked as obsolete it's a warning that you shouldn't use it if you want your code to be easily upgraded in the future.
|
|
|
|
|
I am aware of that, but until I can address the issue with the current framework this is a cleaner solution. Can you assist with this issue?
Regards
dotman1
|
|
|
|
|
I need to make application to view simultaneously, 4 mpg files, how can i do that, if i want to view frame by frame this mpgs synchronous.
|
|
|
|
|
Four windowsMediaPlayer controls, and a quad core processor ?
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi,
I'm creating a Document Management System.
All the files are stored in DB.
When the users would view the files stored in DB, I would like it to be viewed like that of a Print Preview.
I want it this way so that they couldn't copy the text or save the file.
The files I support are doc, xls and pdf.
Can anyone help me with this?
Thanks and more power,
Arthur
|
|
|
|
|
The best way to stop people copying text, is to show it to them in a bitmap, instead of as text.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hello Christian,
Ok thanks for your advice.
I'll try to find ways on converting the files to bitmap or any image.
Cheers,
Arthur
|
|
|
|
|
there is another way which is to convert the files to an XPS format. Then build your own custom XPS viewer. This may seem like a lot of work but alot of it is already done for you in .net framework 3.0.
|
|
|
|
|
Dear All,
I would like the time the execution time for a script. But I did not get any idea for using timer. Any Example for counting the time of running time in a simple way?
Thanks!
|
|
|
|
|
To time something, grab DateTime.Now before and after the operation
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi there .
There is an another way to do it .
Try to use Thread in Threading namespace . Something like following code :
<br />
private void StartThread()<br />
{<br />
Thread thd1 = new Thread(new ThreadStart(Your_Function());<br />
thd1.Start();<br />
<br />
}<br />
<br />
<br />
private void Your_Function()<br />
{<br />
}<br />
Important : If your function get any parameter Use ParameterizedThreadStart delegate instead of ThreadStart
DMASTER
|
|
|
|
|
where is the timing information ?
Developer611 wrote: your function will be execute on per second
what is the meaning of this ?
the new thread will start immediately and execute the method once...
Luc Pattyn [Forum Guidelines] [My Articles]
this weeks tips:
- make Visual display line numbers: Tools/Options/TextEditor/...
- show exceptions with ToString() to see all information
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
how to start a form maximized ?
-- modified at 23:58 Tuesday 7th August, 2007
|
|
|
|
|
Set it's WindowState property accordingly, either in code, or the designer.
Christian Graus - Microsoft MVP - C++
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
what should i do if i have an error in ISynchronizeInvoke casting.
Actually i am doing a c# console application that use ISynchronizeInvoke
the code is like this:
ISynchronizeInvoke i = (ISynchronizeInvoke)this;
The Error:
Unable to cast object of type 'ArtIntelTania.Program' to type 'System.ComponentModel.ISynchronizeInvoke'.
hope somebody can help me
Thanks in advance
Regard,
jac
|
|
|
|
|
Consoles don't implement ISynchronizeInvoke . You'll need a Form or Control for that.
Can you describe in more detail what you're trying to acheive?
|
|
|
|
|
oic...
Actually the idea is like this:
- i want to display all the record(s) inside the database
- the connection is always there, so that i can retrieve the records. For an example, if i insert a new data the data will be displayed instantly (no need to refresh or debug once again).
thanks,
Jac
|
|
|
|
|
jacklynn_mei wrote: - i want to display all the record(s) inside the database
- the connection is always there, so that i can retrieve the records. For an example, if i insert a new data the data will be displayed instantly (no need to refresh or debug once again).
I don't know much about using databases. I'm guessing you'd probably have to hook into some event that is raiesed when the database changes and then display the update in your UI. A Form based application would probably be better for this than a Console application.
|
|
|
|