|
Vivek Bhatnagar wrote: All emoticons are available on my local system...emoticons don't show up on recipient's machine
Should be clue here don't you think? You will have to embed the images or link them to an external resource that is available to the recipient
only two letters away from being an asset
|
|
|
|
|
Wouldn't the email also have to be HTML for images to show?
Otherwise wouldn't they just be an attachment?
|
|
|
|
|
Sorry, that was a given, didn't think I needed to mention the obvious
only two letters away from being an asset
|
|
|
|
|
from the OP I didn't know if he knew that, assuming he used a RTB I think he may have forgot that, which is why I was asking...
|
|
|
|
|
Suppose your site is abc.com.
Now in your mail the path for the emoticons should be
http://www.abc.com/images/a.jpg
not images/a.jpg
Try using it, i think it will solve your problem
|
|
|
|
|
I think the images are on his PC, not on a web-connected server
|
|
|
|
|
Its a Windows application using System.Net.Mail class. The application won't be available on net.
In the application, the user writes a mail and can paste\insert few images\emoticons (present on local machine) in a RTB provided.The contents of RTB are then assigned to 'Body' property of MailMessage class and then the mail is delivered to recipients.The pictures are not showing up on recepient's machine
|
|
|
|
|
You need to host images online, otherwise you cannot display the images in mail
|
|
|
|
|
Thanks for all your responses.
All the images are located on my local system. Whenever a user selects an emoticon to be inserted, I am using the following code:-
Clipboard.Clear()
Clipboard.SetImage(strPicture)
Dim PictureFormat As DataFormats.Format = DataFormats.GetFormatDataFormats.Bitmap)
rtbContents.Paste(PictureFormat)
The contents of RTB (which includes text as well as emoticons) is assigned to 'Body' property of MailMessage class. Also 'IsBodyHTML' is set to true. Now when the mail is sent, the emoticons instead of appearing at the place where they were inserted, they are appearing as an attachment.Any suggestions?
|
|
|
|
|
Yes, attach the images as an attachment and format your body using HTML, You cannot do it the way you are describing.
|
|
|
|
|
Images can be inserted to the mail body by embedding them as linked resources.We need to first create an alternate view
Dim htmlView As AlternateView = AlternateView.CreateAlternateViewFromString(rtbContents.Text, Nothing, "text/html")
Next all images inserted to the mail body are embedded as linked resources to AlternateView with each image having a unique id.Next the alternate view is added to the MaiMessage object.
Once again thanx for all your responses
|
|
|
|
|
Hi, I am trying to create a function in vb .NET that can calculate the travel time from one point (P(x,y)) to another point(Q(x,y)) knowing the speed as a constant per squere. Exemple 1 square = 00:12:00.
When I calculate the distance between the 2 points, the result is a double, for example 4.32.
To get the travel time I need to multiply 4.32 by 00:12:00 (double, by datetime).
I have tried using Convert.ToDouble method and TimeSpan but i didn't manage to work with them.
How can this be achieved?
The end result should be in datetime format.
|
|
|
|
|
Hi,
a travel time is a TimeSpan, not a DateTime. (what would be the meaning of 08-JAN-2009 times two?)
The TimeSpan type offers Add methods but no Multiply methods, however it has a Ticks getter property so you can convert it to ticks, and it also has a constructor(ticks) so you can create a new TimeSpan with a new value.
modified on Wednesday, January 7, 2009 11:27 PM
|
|
|
|
|
Hi, thanks for the reply ...
I have converted the time in seconds (integer). This has helped me to multiply the time(s).
Then using the DateAdd(DateInterval.Second,seconds, date start) to calculate if you start from a date, from a point, when you will reach the next one, if you know the travel time in seconds.
Now it is clear for me...
|
|
|
|
|
I have created a setup project in VS2008. My WinForms app uses .NET 2.0, so I chose .NET 2.0 Prerequisity and built the setup project.
When I run my Setup.msi on a clean PC, it correctly detects that the .NET is missing and asks if it should be installed. After a successful installation of the .NET, the installer simply exits and doesn't continue with installation of my app (I think it should).
When I run the MSI file on a PC with .NET already installed, my app installs correctly.
Is there any way how to install .NET 2.0 and my app together in one step?
|
|
|
|
|
petrveit wrote: Is there any way how to install .NET 2.0 and my app together in one step?
It's already doing that. Must likely the .NET Framework requires a reboot before continuing with the setup
only two letters away from being an asset
|
|
|
|
|
Good afternoon,
i have one c# class known as EXTdata implementing IEXTAccess
i want to create an instance of EXTdata inside javascript function doScript().
my html code is here.
<title>Untitled Page
<object id="myControl1" name="myControl1" classid="EXTViewer.dll#EXTViewerLib.EXTViewer" width="100%" height="90%">
function doScript()
{
var filepath = document.getElementById("openFileDialog").value;
myControl1.SetIEXTAccess = <b>/* here should be instance of c# class new EXTdata(filePath); */</b>
return true;
}
i am not getting how to instantiate c# class implemeting some interface inside javascript
Any suggestion or sample code if any one have it.
Thanks in advance.
DaTtA.
way2datta@gmail.com
|
|
|
|
|
One way is to create a COM wrapper around the C# class.
The COM can then be instantiated in javascript using the ActiveXObject object.
«_Superman_»
|
|
|
|
|
Thanks a lot!!!!
but can i get tutorial or some thing that will help me to wrap the class inside COM.
|
|
|
|
|
|
Hi All,
OleDbDataAdapter.Fill(DataSet)
We do have a summary screen, displaying all books information using GridView from BookMaster Table in Access
DataBase.OleDbDataAdapter.Fill() method to fill dataset and bind the dataset to GridView. In Summary Screen, there is an option to insert data, of newly purchased Books.Once New Data is entered, it redirects back to summary screen.
Problem is newly entered record is not populated in GridView. If we refresh the page or reload the
page, new data is populated.
Can someone help me to solve this problem.
Thank you in advance
|
|
|
|
|
rema r wrote: Problem is newly entered record is not populated in GridView. If we refresh the page or reload the
page, new data is populated.
One way to handle this is that you really refresh the dataset from the database to reflect the current situtation in the database. Especially in multi-user environments it's typical.
However if the row inserted using a gridview goes to the dataset and from there it goes to the database and in that point it get's deleted from the gridview, I would guess that the gridview refreshes with old data. But without seeing the code it's hard to identify the problem.
|
|
|
|
|
Hi,
Thank you very much for your immediate reply.
Have attached code herewith for binding GridView from Ms Access DB
string strsql = "select BookId,BookName,Author,Editon from BookMaster";
OleDbDataAdapter adapter = new OleDbDataAdapter();
OleDbCommand command = new OleDbCommand(strsql, "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=E:\Testing\Library_db.mdb;");
adapter.SelectCommand = command;
DataSet ds = new DataSet();
adapter.Fill(ds, "roads");
GridView1.DataSource = ds;
GridView1.DataBind();
Thank you
|
|
|
|
|
Glad it helped.
|
|
|
|
|
Hi,
I am new to .net and may be this question is very basic..but I did not find much info on standard controls when I browsed.
I need to make a small application where the users would select a file for processing.
What controls can I use in .net so that the users get a windows explorer like file selector when they click on the button. The file they select should be passed as an argument to some other program.
Thanks
RS
|
|
|
|