Click here to Skip to main content
15,901,035 members

Comments by MAYANK GEETE (Top 44 by date)

MAYANK GEETE 20-Aug-16 5:51am View    
Any other option to do that?
MAYANK GEETE 20-Aug-16 5:01am View    
Yes i have. When i open that excel it will data with HTML Tags.
MAYANK GEETE 23-Oct-15 6:24am View    
Please see this link

https://msdn.microsoft.com/en-us/library/system.drawing.image.tag(v=vs.110).aspx

why its not working
MAYANK GEETE 23-Oct-15 5:56am View    
Hello George Jonsson

// Create two images.
Image image1 = Image.FromFile("c:\\FakePhoto1.jpg");
Image image2 = Image.FromFile("c:\\FakePhoto2.jpg");

// Get a PropertyItem from image1.
PropertyItem propItem = image1.GetPropertyItem(20624);

// Change the ID of the PropertyItem.
propItem.Id = 20625;

// Set the PropertyItem for image2.
image2.SetPropertyItem(propItem);

// Draw the image.
e.Graphics.DrawImage(image2, 20.0F, 20.0F);

but in this code there no TAG Value
MAYANK GEETE 23-Oct-15 5:54am View    
I tried this code

string path = "E:\\download.jpg";
Image image = Image.FromFile(path);
image.Tag = "Hello";
image.Save("E:\\Test.JPG");

But its not workin