|
friends i created outlook plugin. its work fine with me but when i give it to my client it generate an error "The surrogate pair (0xD840, 0xD840) is invalid. A high surrogate character (0xD800 - 0xDBFF) must always be paired with a low surrogate character (0xDC00 - 0xDFFF)"
My language of outlook is English and my client language is spanish.
How can i fix this error plz help me.
WANTED wasim khan(Killed 50 Innocent Buggs, Distroyed 200 Exception, make 5 Project Hostage) any Compnay Hire him will pay 30,000. Best place where u can get him is Sorcim Technologies Murre Road RWP
|
|
|
|
|
My guess would be that it is having problems with the "special" characters present in those languages.
Are you using the Encoding.UTF7 or Unicode to do the encoding?
Manas Bhardwaj
Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.
|
|
|
|
|
HI
Can anyone help me, creating a bar chart using crystal reports
it's uses a simple Database table
TableName|WaiterResponseTime
Table 1 | 30 seconds
Table 2 | 20 seconds
i want the graph to show thable name on the x axis and Waiter Response Time in seconds on the y axis
i got this working fine, however it's not displying the seconds correctly, i think it's doing a count and showing how many times a table appears in the database instead of displaying the corresponding seconds value
thanx in advance
|
|
|
|
|
I have a simple C# exe. It internally has some calls to custom interop. I dont have any problem in executing it manually by either double clicking the exe or thru command prompt, everything works as expected. But the moment i launch it using windows scheduled task it always fails.
It fails with the following exception,BTW i am using W2K.
Error: Unable to cast COM object of type 'Interop.DynamicDCOM.RetPointerClass' to interface type 'Interop.DynamicDCOM._RetPointer'. This operation failed because the QueryInterface call on the COM component for the interface with IID '{8E3511C2-23CE-4098-92DC-D86E8C26ECF3}' failed due to the following error: Access is denied. (Exception from HRESULT: 0x80070005 (E_ACCESSDENIED)).
I have the right user permission to run this task, same as windows logon, also member of administrator group on the box.
Any suggestion/solution?
Thanks in advance....
Hariharan.T
|
|
|
|
|
Log the name of the Windows User at startup
--edit--
I know it's a short answer, but I think that Colin[^] may have a point. And it would seem logical to verify his statement and answering his post.
I are troll
|
|
|
|
|
Thanks for the reply!!!
just got it fixed The issues is the component service running on the machine didnt have the Administrators group in the Default Security -> Default Access Permission. Adding it resolved the issue.
Hariharan.T
|
|
|
|
|
I am looking for a solution to converting a byte array to an image using the compact framework(windows mobile application). I have tried multiple ways, but the restrictions of the compact framework are proving to be very difficult because the Image.FromStream is not part of the
This code was posted by me...
|
|
|
|
|
Hi,
did you tried to save the byte-array into a file, and loading the image from file. Maybe that's just a nasty hack, but it will work until you find a better solution
Regards
Sebastian
|
|
|
|
|
i m giving the code code and i m getting just "Exception".i cant understand wht exception is it.sometimes i m getting outofmemory exception.the line that throws exception is
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read));
this line raises another exception too "the process cannot access the files \Program Files\\syswifi\\pic\\screen.jpg because it is used been used by another process"
System.IO.MemoryStream ms = new System.IO.MemoryStream(data);
try
{
FileStream fs = new FileStream("\\Program Files\\syswifi\\pic\\screen.Bmp", FileMode.Create);
ms.WriteTo(fs);
fs.Close();
ms.Flush();
ms.Close();
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read)) ;
}
catch(Exception ex)
{
MessageBox.Show("Failed to display" + ex.Message);
}
This code was posted by me...
modified on Wednesday, July 8, 2009 6:33 AM
|
|
|
|
|
hmm, are you sure that it is this line? it is trying to access a jpg...
I would call the fs.Close after ms.Flush, so that the data can flew into the FileStream.
|
|
|
|
|
Bitmap has a constructor that takes in MemoryStream as parameter. Something like this:
MemoryStream oMemStream = new MemoryStream(yourByteArray);
Image oImg = new Bitmap(oMemStream);
Does this works with Compact Framework?
|
|
|
|
|
its giving an exception "value does not fall with in range"
This code was posted by me...
|
|
|
|
|
Can you show some code you have written and the line giving error?
|
|
|
|
|
i m giving the code code and i m getting just "Exception".i cant understand wht exception is it.sometimes i m getting outofmemory exception.the line that throws exception is
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read));
this line raises another exception too "the process cannot access the files \Program Files\\syswifi\\pic\\screen.jpg because it is used been used by another process"
System.IO.MemoryStream ms = new System.IO.MemoryStream(data);
try
{
FileStream fs = new FileStream("\\Program Files\\syswifi\\pic\\screen.Bmp", FileMode.Create);
ms.WriteTo(fs);
fs.Close();
ms.Flush();
ms.Close();
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read)) ;
}
catch(Exception ex)
{
MessageBox.Show("Failed to display" + ex.Message);
}
This code was posted by me...
|
|
|
|
|
if i use this code
MemoryStream oMemStream = new MemoryStream(yourByteArray);
Image oImg = new Bitmap(oMemStream);
picturebox1.Image=oImg;
the exception "value does not fall within expected range" is raised in line 2
This code was posted by me...
|
|
|
|
|
Vivek Vijayan wrote: value does not fall within expected range
There can be two reasons, either that btye array is not a valid bitmap or your device cannot decode the image.
|
|
|
|
|
how can can i load an image from a file in to a picture box in mobile application (not using filedialog)
This code was posted by me...
|
|
|
|
|
What kind of byte array is it? Raw pixels or a complete image with header and all?
|
|
|
|
|
sry i din undrstd ur question
i m giving the code code and i m getting just "Exception".i cant understand wht exception is it.sometimes i m getting outofmemory exception.the line that throws exception is
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read));
this line raises another exception too "the process cannot access the files \Program Files\\syswifi\\pic\\screen.jpg because it is used been used by another process"
System.IO.MemoryStream ms = new System.IO.MemoryStream(data);
try
{
FileStream fs = new FileStream("\\Program Files\\syswifi\\pic\\screen.Bmp", FileMode.Create);
ms.WriteTo(fs);
fs.Close();
ms.Flush();
ms.Close();
pictureBox1.Image = new Bitmap(File.Open("\\Program Files\\syswifi\\pic\\screen.Bmp",FileMode.Open,FileAccess.Read)) ;
}
catch(Exception ex)
{
MessageBox.Show("Failed to display" + ex.Message);
}
how can can i load an image in to a picture box
in mobile application
This code was posted by me...
|
|
|
|
|
My question is actually very important, if your data is "just pixels" then saving it in a BMP file will just give an invalid BMP file - when the Bitmap importer then tries to read it, it will read the width and height but they would be colors instead of the width and height and they will probably be very big, then it will try to allocate too much memory because it thinks the picture is that big (when of course it really isn't).
So what is your data? Is it pixels? Or do you have a proper image header in there? If so, of what type?
|
|
|
|
|
my application is like this:
windows appliaction send the image as bytes and the mobile device receives the bytes and then i send it to a memory stream and convert it back to picture.. i want to get image from that received byte array or memory stream.i m new to this mobile application development. so i still cant differentiate raw pixel or complete image.
This code was posted by me...
|
|
|
|
|
How does it send the image as bytes?
|
|
|
|
|
i convert the image to bytes and send using socket.send()
This code was posted by me...
|
|
|
|
|
Vivek Vijayan wrote: convert the image to bytes
Well that is the most important part - How do you convert it?
|
|
|
|
|
here is the code
Bitmap bmp = new Bitmap("D:\\screen.Bmp");
bmp.Save(ms, System.Drawing.Imaging.ImageFormat.Bmp);
byte[] size = ms.ToArray();
sockt.Send(size);
This code was posted by me...
|
|
|
|