|
Hi,
I'm need to display the body of an email in an HTMLBrowser. (axshdocvw.axwebbrowser).
Actually i'm keeping the body in a string variable...
############### Here's my code ##################
MAPIPROPLib.MAPIPropWrapper wrapper = new MAPIPROPLib.MAPIPropWrapperClass();
Microsoft.Office.Interop.Outlook.Application outlook = new Microsoft.Office.Interop.Outlook.ApplicationClass();
wrapper.Initialize();
Microsoft.Office.Interop.Outlook.MailItem m = (Microsoft.Office.Interop.Outlook.MailItem)objItem;
string subject = (string)wrapper.GetOneProp(objItem, MyClass.CdoConstants.CdoPR_SUBJECT);
EmailCommunicationData emailMessage = new Dataset EmailCommunicationData();
emailMessage.MessageBody =GetWrapperString(wrapper, objItem, MyClass.CdoConstants.CdoPR_BODY);
// the following code don't work
bodyHtmlBrowser.Navigate(filename);
#################################
please help me out.
TIA,
Kevin.
|
|
|
|
|
try
bodyHtmlBrowser.DocumentText = YourHtmlString
|
|
|
|
|
Hi all dear coders.
What I have is
- server
- client
- remoted classes
What I trying to do is
- client calls a remoted object method, a method calculated in the server.
this method calculation takes long time, 5-6 seconds.
- while server calculating that method, client sends another method call.
- server must queue these threads, and after calculating completes, let knows the client that process complete, and return a value.
Thank you in advance.
|
|
|
|
|
And what exactly is your question? I suppose it is how to do this?
Search for articles about remoting, or ask a more specific question please.
Visual Studio can't evaluate this, can you?
public object moo<br />
{<br />
__get { return moo; }<br />
__set { moo = value; }<br />
}
|
|
|
|
|
BY Flash or gradient image please by sample,code and image
I well stand
|
|
|
|
|
Hi Friend'z
I have MDI application which contains multiple forms, From Main page's main menu i have opened login form. after entering login details, i have to go to main page. i'm going to another page but login page wil not b closing. the Login form should be closed after main page is opened.
How can i do it?
pl help me friends... thanks in advance!
ITS VERY URGENT FRIEND'Z
|
|
|
|
|
I'm not quite clear of what exactly you want to do, but in my MDI apps, most of the time I put the login controls in a panel instead of a form that can be hidden once login is authenticated. "usually in the middle of the MDI form"
ps. try to avoid using CAPS and urgent in your posts, actually, they work in the opposite way most of the time
Smile: A curve that can set a lot of things straight!
(\ /)
(O.o)
(><)
|
|
|
|
|
- Don't post the same question more than once especially less than an hour after posting the original question. People on these boards give their time freely and don't get paid for their help. Just because something is urgent for you, doesn't mean that somebody else is going to give it their fullest attention until they are ready. Multiple postings makes it less (rather than more) likely that you will get help.
- Try to make the subject more meaningful in describing the problem.
- Don't use text speak. This is annoying. You have a keyboard with far more keys than a mobile has, so use it. You're not a surfer boy so ending something in a Z is just asking for trouble.
- Don't use capitals to try to get our attention.
Now, to answer your question - you are calling the login page at the wrong place. If you want the login form to determine whether or not the main form is actually called or not, you should call it before you even attempt to create the main form. If you look at your main method (static void Main(...)), you will see an line that says something like Application.Run(new MainForm()); . You need to call your login form before this, and only call this line if the login is successful. Example:
using (LoginForm dlg = new LoginForm())
{
if (dlg.ShowDialog() == DialogResult.OK)
Application.Run(new MainForm());
}
Deja View - the feeling that you've seen this post before.
|
|
|
|
|
you can hide first the login form before you open the main form. Simply by doing this.
[LoginFormName].Hide();
[MainFormName].Show();
Normally, you would want to hide the login form so that the application will not quit. But if the login form is not your startup form you can close the close the login form.
[MainFormName].Show();
[LoginFormName].Close();
Notice that the main from will show first then the login form will close. If you do it the other way, the login form will not be able to call the method '[MainFormName].Show();'
|
|
|
|
|
please get me sample,sourcecode with imageing model
I well stand
|
|
|
|
|
In VS2005 every time I open a project, the files I had open last time get opened automatically. It's not such a big problem, however the designer of global.asax gets opened to and causes vs2005 to hang when closing that designer.
Is there any way to disable automatic opening of files when loading a project.
WM.
What about weapons of mass-construction?
"What? Its an Apple MacBook Pro. They are sexy!" - Paul Watson
|
|
|
|
|
go to TOOLS>IMPORT and Export Settings then 'reset all settings'
Hope this helps.
|
|
|
|
|
Hi All,
I need to create a software that will dial numbers from a list, and play a wave file. Available hardware is a modem with general phone line.
I have no idea how to do this. Any link or idea will be really helpful.
Thanks in advance
|
|
|
|
|
Hi all,
I write the data from one of my tables to a xml file. It executes the entire procedure without any errors, but it doesn't finish the xml file, so if I step through the program as it executes, it finalizes the document with the end element and the end document, but if I open the xml file in notepad, it stopped half way writing the elements of the last node.
Does anyone have an idea why this is happing?
Thanks in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
if you post some code i can tell the error
|
|
|
|
|
Here's the method
try<br />
{<br />
XmlTextWriter _writer = new XmlTextWriter(Filepath,System.Text.Encoding.UTF8);<br />
_writer.Formatting = Formatting.Indented;<br />
_writer.WriteStartDocument(true);<br />
_writer.WriteStartElement("ProductsExport");<br />
<br />
ProductData pd = new ProductData();<br />
pd.LoadData();<br />
if(pd.RowCount>0)<br />
{<br />
for(int index = 0; index < pd.RowCount; index++)<br />
{<br />
string _key = pd.ProdKey, _desc = pd.Description, _instore = "0", _retail = "0", _brandId = pd.BrandID, _sType = pd.StockType, _size = pd.StockSize, _meas = pd.SizeMeasure;<br />
string _reorMes = pd.ReOrderMeasure, _reorQty = pd.ReOrderLevel, _cost = pd.WholeSalePrice, _whole = "";<br />
string _overwrite = "0", _barcode = pd.Barcode, _depId = pd.DepartmentCode, _uDiv = pd.UsageDividend.ToString(), _uMes = pd.UsageMeasure, _invDesc = "";<br />
PriceData pr = new PriceData();<br />
pr.LoadData("1",pd.ID,System.DateTime.Now);<br />
if(pr.RowCount>0)<br />
{<br />
_whole = pr.PriceAmount;<br />
_invDesc = pr.PriceInvoiceLine.Trim();<br />
}<br />
if(pd.RetailItem) _retail = "1";<br />
if(pd.InStoreUseOnly) _instore = "1";<br />
if(pd.Overwrite) _overwrite = "1";<br />
_writer.WriteStartElement("Product");<br />
<br />
_writer.WriteElementString("Key",_key);<br />
_writer.WriteElementString("Description",_desc);<br />
_writer.WriteElementString("Instore",_instore);<br />
_writer.WriteElementString("Retail",_retail);<br />
_writer.WriteElementString("Brand_Id",_brandId);<br />
_writer.WriteElementString("Stock_Type",_sType);<br />
_writer.WriteElementString("Size",_size);<br />
_writer.WriteElementString("Measure",_meas);<br />
_writer.WriteElementString("ReorderMeasure",_reorMes);<br />
_writer.WriteElementString("ReorderQty",_reorQty);<br />
_writer.WriteElementString("CostPrice",_cost);<br />
_writer.WriteElementString("WholeSalePrice",_whole);<br />
_writer.WriteElementString("PriceOverwrite",_overwrite);<br />
_writer.WriteElementString("Barcode",_barcode);<br />
_writer.WriteElementString("Department_Id",_depId);<br />
_writer.WriteElementString("Usage_Dividend",_uDiv);<br />
_writer.WriteElementString("Usage_Measure",_uMes);<br />
_writer.WriteElementString("Invoice_Description",_invDesc);<br />
<br />
_writer.WriteEndElement();<br />
<br />
pd.MoveNext();<br />
}<br />
}<br />
_writer.WriteEndElement();<br />
_writer.WriteEndDocument();<br />
returnValue = true;<br />
}<br />
catch(Exception ex)<br />
{<br />
new Brim.Library.EventLogDetails().WriteEventLogEntry(ex.ToString(),System.Diagnostics.EventLogEntryType.Error);<br />
System.Windows.Forms.MessageBox.Show(ex.Message,"Export Failed",System.Windows.Forms.MessageBoxButtons.OK,System.Windows.Forms.MessageBoxIcon.Error);<br />
}<br />
He who laughs last is a bit on the slow side
|
|
|
|
|
How do I post the xml? it only posts the values, not the tags itself, I tried putting it in the code tags but that doesn't work either
He who laughs last is a bit on the slow side
|
|
|
|
|
put this and try again
_writer.Close();
replay me if it works
|
|
|
|
|
Thanks, it works now
He who laughs last is a bit on the slow side
|
|
|
|
|
Hi,
I am trying to use a documentstream of a pdf file to show that in a webbrowser component. I am trying to use the DocumentStream property of the .NET 2.0 Webbrowser component. I have this code:
byte[] rapport = rs.GetStreamFromRender();<br />
System.IO.MemoryStream stream = new System.IO.MemoryStream();<br />
stream.Write(rapport, 0, rapport.Length);<br />
webBrowser1.DocumentStream = stream;
The stream holds the pdf file correctly but the webbrowser component never shows the page although the DocumentStream property is filled. It just shows an empty page.
Does anyone have an idea how to show the streamed page ??
|
|
|
|
|
I know it's been a while since you posted this, but I'm having the same issue and wanted to know if you were able to find a solution?
thanks,
Will
|
|
|
|
|
Hi all,
I looked around at different ways to connect to databases. Then I saw that some people have the loads and other commands as stored procedures in the database, is it better to do it like that or is it better to have the loads and those commands in the application itself?
Thanks in advance
He who laughs last is a bit on the slow side
|
|
|
|
|
Hi Friend'z
I have MDI application which contains multiple forms, From Main page's main menu i have opened login form. after entering login details, i have to go to main page. i'm going to another page but login page wil not b closing. the Login form should be closed after main page is opened.
How can i do it?
pl help me friends... thanks in advance!
ITS VERY URGENT FRIEND'Z
|
|
|
|
|
you can hide first the login form before you open the main form. Simply by doing this.
[LoginFormName].Hide()
[MainFormName].Show()
Normally, you would want to hide the login form so that the application will not quit. But if the login form is not your startup form you can close the close the login form.
[MainFormName].Show()
[LoginFormName].Close()
Notice that the main from will show first then the login form will close. If you do it the other way, the login form will not be able to call the method '[MainFormName].Show()'
|
|
|
|
|
hi all,
i have a MDIform wich contains two subforms, when i click on the a button of a form the other forms pups up, and the first form should disappear,
how to do this,
do we have any provision to communicate between two forms,--like of Session
of webpages,
please help me
thnx in advance,
prashanth,
|
|
|
|
|