|
it does not give me the height and width in pixel yet.
i want only height and width. unit and density does not help me
thank you again.
|
|
|
|
|
Hi,
I want to save the images into Access database in C#. Please give ne the sample piece of code if you have or give me the related links.
Thanks in Advance,
AR Reddy
|
|
|
|
|
Hi,
to save images in access first transform them in bytes and then insert them in access.
|
|
|
|
|
There's a bazillion examples out on the web. All you have to do is Google for "C# save image access database".
|
|
|
|
|
I looked at some of your previous posts and many are considered 'generic' questions and several people have already told you to try to use Google. This forum is more for people who write their own code and then need help fixing it.
______________________
stuff + cats = awesome
|
|
|
|
|
Has anyone got an example of how to drag and drop into a multi line textbox or rich textbox? I need to be able to drag an item from a listbox and drop that item on the box where the cursor is.
|
|
|
|
|
|
hi
i create an application that user can change design forms at run time.
how can i save a C# form at run time
tanks
|
|
|
|
|
Hello,
Search for Serialization, System.XML for example.
All the best,
Martin
|
|
|
|
|
B.A wrote: i create an application that user can change design forms at run time.
how can i save a C# form at run time
Are you saying you want the form's controls to have the same values the next time the user opens your app? You can save the data to a file or the registry when you exit, and simply read them when you start again.
Cheers,
Vıkram.
After all is said and done, much is said and little is done.
|
|
|
|
|
Why does the following code snippet
MemoryStream stream = new MemoryStream();
XmlTextWriter writer = new XmlTextWriter(stream, Encoding.UTF8);
writer.WriteStartDocument();
writer.WriteElementString("Test", "Test");
writer.WriteEndDocument();
writer.Flush();
stream.Seek(0, SeekOrigin.Begin);
Console.WriteLine(Encoding.UTF8.GetString(stream.ToArray()));
produce the following output:
?<test>Test
The question mark at the beginning is meant.
I've tried different encodings, it does not happen with Default and ASCII.
When I use a StreamReader I can get it to work, but I will understand where the problem is.
|
|
|
|
|
Let me try that piece out... Looks interesting. It has something to do with the number of bytes in a character. The "old" ASCII uses 7 bits, while UTF8, you guessed it uses 8 bits. But it doesn't really explain why you get the weird character at the beginning.
Have you tried looking up some info about text encoding on google?
|
|
|
|
|
Yes, I've tried to find some hints on Google but without success.
Console.WriteLine(new StreamReader(stream).ReadToEnd());
works correct.
|
|
|
|
|
when you create a stream or file in UTF8 or in Unicode, it will start with a 2-byte
indication of the encoding; in your case it is 0xFE 0xBB. Only then will appear the
first "real" character (0x3C for <).
If you write to file, then open the file in a text editor, both cases work just fine,
because the editor consumes the optional 2-byte to understand how it needs to interpret
the remainder.
Your reading code however does not discover the encoding, it has that information baked
into the code, so it treats the 0xFE oxBB as real characters and since they are not
really printable (above 0x7E), it turns them into a single question mark.
|
|
|
|
|
hi, i am trying to implement magnification just like ACDC. Any one can guide me about magnification algorithm.
i will b thankful to you.
regards,
|
|
|
|
|
it doesn't have any special algorithm. you can use .net methods (antialiasing enabled) to do it.
simply create a panel and on paint event use e.Graphics.DrawImage() method to draw your image in your panel that larged according the zoom when e.i. + key pressed.
-- modified at 10:32 Tuesday 3rd July, 2007
modified 8-Jan-14 3:11am.
|
|
|
|
|
Hi, thanks a lot for your reply. Actually I am using the same method as you have described but it is bit slow and getting complex. Because I have to draw the whole drawing again. Have u seen such kind of code or any sample. Plz let me know I will be very thankful to you.
Regards,
|
|
|
|
|
i am having the text boxes in my application.
after running my application, i fill values in these text boxes.
now i want to print the values of these text boxes.
how can i.please send me the code.
hhhhhhhhhh
|
|
|
|
|
|
Hi there,
I encountered some authentification issue.I have a window application in C#, having program which is calling web services, but I receive a log file said "Error Message: The remote server returned an error: (401) Unauthorized.". What I need to do is to pass credential of NT Login ID and password, then only I am able to access the websservice. Can anyone walk through my coding, any line or command is missing? How i can pass the credential along?
...
string boundaryString = Guid.NewGuid().ToString("N");
string boundaryLine = "--" + boundaryString + "\r\n";
Uri uri = new Uri(requestUri);
HttpWebRequest request;
request = (HttpWebRequest)WebRequest.Create(uri);
request.Credentials = System.Net.CredentialCache.DefaultCredentials;
request.ContentType = "text/plain; boundary=" + boundaryString;
request.Method = "POST";
...
thanks,
Lee Chuang
|
|
|
|
|
|
Thanks for reply. The content of the link is talking about the using Client Certification. But over my side, I am using service account (NT Login Account) for the credential. My NT login is known by the opposite server. So when I run the web service, remote server knows my present to the service. But bad news is I am not sure how to make my code carry along with the credential.
really need more help...
thanks,
Lee Chuang.
|
|
|
|
|
hi everybody
I wanna to know how to generate a pdf report by code using c#.net
thank's 
|
|
|
|
|
|
Error: 80045901 Initializing SQL Server Reconciler failed. Minor error: 29045.
This is what I recieve when trying to sync with the SQL
server from my Pocket PC emulator. I register sscerp20.dll by using regsvr32 "C:\Program Files\Microsoft SQL Server CE 2.0\Server\sscerp20.dll. That hasn't
helped. Has anyone else seen this issue
or perhaps,found a solution for it?
Please help me
Thx,
fakhirov
|
|
|
|