|
hi
i want to set pass on my access db and use it in .net but when i import it to vs.net, the following message has shown :
Microsoft Data Link Error
---------------------------
Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
---------------------------
OK
my access was closed,and username is : Admin but i don't know why this message has been shown.
please help hat how to imort it to my vs.net and solve my problem.
|
|
|
|
|
Follow up on the replies you already got instead of posting the same question again.
---
b { font-weight: normal; }
|
|
|
|
|
hi
and sorry for question again
but my problem was not solved . Please give me a full description because i am beginer.
thanks.
|
|
|
|
|
Good afternoon.
1. In my program i send the letter through MS Outlook 2003. And so how to make so that it (Outlook) return in my program result of sending of the letter or I can not so I send:
<br />
Outlook.Application = new Outlook.Application();<br />
<br />
Outlook.MailItem oMsg = (Outlook.MailItem)oApp.CreateItem(Outlook.OlItemType.olMailItem);<br />
<br />
Outlook.Recipient oRecip = (Outlook.Recipient)oMsg.Recipients.Add(CBTo.SelectedItem.ToString());<br />
oRecip.Resolve();<br />
<br />
oMsg.Subject = "Letter";<br />
oMsg.Body = "";<br />
<br />
string sSource = currentPATH + @"\Attachment.zip";<br />
String sDisplayName = "MyFirstAttachment";<br />
int iPosition = (int)oMsg.Body.Length + 1;<br />
int iAttachType = (int)Outlook.OlAttachmentType.olByValue; <br />
Outlook.Attachment oAttach = oMsg.Attachments.Add(sSource,iAttachType,iPosition,sDisplayName);<br />
<br />
oMsg.Save();<br />
oMsg.Send();<br />
And so method Send simply sends the letter and if that show warning window Outlook, that the letter is not sent, and the program easy at this time works further... And it is necessary that it reacted to result! Method Send returns void. Can be other method?
2. How it is possible define a default box in MS Outlook through which letters by default send? Thanks.
|
|
|
|
|
hi all,
i need to read file contents from a zip file.
i believe there are two classes in System.IO.Compression namespace:
1) DeflateStream
2) GZipStream
Is is possible, using these classes, to know:
1. exact number of files in the zip file
2. read each file individually without extracting the content anywhere.
Please help me out. Any help will be highly appreciated.
Thanks in advance.
*** Who said nothing is impossible? I have been doing it for a long time ***
|
|
|
|
|
Found ICSharpCode.SharpZipLib.dll
http://icsharpcode.net/OpenSource/SharpZipLib/Default.aspx
|
|
|
|
|
Hi there everybody!
I was using XmlDocument.SelectSingleNode in .Net quite fine but I just ported a portion of my code to compact framwork and it says there is no such damn function!!Is there any shortcut or other way to do the same work or ?
|
|
|
|
|
|
hi
when i open my access db exclusively and set password and when i add oledbdataadapter to my form and in configuration window set neccessary properties and enter my pass and click test connection button,the follow message shown for me :
---------------------------
Microsoft Data Link Error
---------------------------
Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
---------------------------
OK
---------------------------
user : Admin
Pass : 123
How to solve my problem and add my db in c# ?
|
|
|
|
|
When you have the database open in Access, you can't also open it from C#. Close Access.
---
b { font-weight: normal; }
|
|
|
|
|
when access was close that message shown again.
|
|
|
|
|
hdv212 wrote:
---------------------------
Microsoft Data Link Error
---------------------------
Test connection failed because of an error in initializing provider. Cannot start your application. The workgroup information file is missing or opened exclusively by another user.
---------------------------
OK
---------------------------
user : Admin
Pass : 123
[disclaimer]
I’m still not up to speed with .NET, but I recognize this type of error for ADO.
[/disclaimer]
I assume your supplying a username along with the password, right? If you just want the database password protected don’t worry about setting a password on the user, just set the password on the database and don’t worry about the user name in the connection.
|
|
|
|
|
Can somebody tell me the deployment steps for the window application in C#
Thank You
Pankaj Garg
|
|
|
|
|
You simply need to "copy and paste" the executable and any support files onto the target machine, which has to have the .NET Framework installed.
I'm not sure about how to do this using the VS Installer Projects but using something like NSIS gives you more flexability.
Alot depends on how complex your application is and what your requirements are, if you need further help then please be more specific.
Ed
|
|
|
|
|
how can i find bluetooth devices mac addresses in my area then store them in a array?
|
|
|
|
|
I'm using Open GL with C# and I want to import objects from 3D Max. How Can I do that??
|
|
|
|
|
I already answered your question here[^]. Please don't post the same question multiple times in the forum, once is sufficient.
|
|
|
|
|
|
hi all
anyone know how to do the no titlebar and resizable form in C#
thanks
|
|
|
|
|
Right-click the form, choose properties and set ControlBox=False and Text="" and set MinimumSize the same as MaximumSize.
jhaga
It would be glorious to see mankind at leisure for once. It is nothing but work, work, work. I cannot easily buy a blank-book to write thoughts in; they are commonly ruled for dollars and cents. A[man], seeing me making a minute in the fields, took it for granted that I was calculating my wages. — business! - I think that there is nothing, not even crime, more opposed to poetry, to philosophy, ay, to life itself, than this incessant business.
Henry David Thoreau
-- modified at 19:41 Saturday 15th April, 2006
|
|
|
|
|
in my site i have form to upload image
this image may be very big or very small
but
after user upload this image i want make some imagte prossessing as
(
1- i want to make two image from the original image
2- the first image have (50*50) cordinate
3- the secode image have (200*200) as max hight and max wiedth
4-i want for each image to take new name
)
u can see example in this site
http://www.blocket.se/vi/7874861.htm?ca=10_s
u can see tow image one small and one big
how can do as this in my site
Palestine
|
|
|
|
|
You can use the classes in System.Drawing and System.Drawing.Drawing2D namespaces to manipulate images. You can use System.IO.Path.GetTempFile method to create and return a unique file on disk.
If you need more specific answers, please post a more specific question or problem.
Tech, life, family, faith: Give me a visit.
I'm currently blogging about: I luv teh choco
The apostle Paul, modernly speaking: Epistles of Paul
Judah Himango
|
|
|
|
|
try something like this
Stream imgStream = UploadFile.PostedFile.InputStream;
int imgLen = UploadFile.PostedFile.ContentLength;
string imgContentType = UploadFile.PostedFile.ContentType;
string imgName = txtImgName.Value;
byte[] imgBinaryData = new byte[imgLen];
int n = imgStream.Read(imgBinaryData,0,imgLen);
//thumb
MemoryStream stream = new MemoryStream();
System.Drawing.Image thumb = System.Drawing.Image.FromStream(imgStream);
System.Drawing.Image thumbnail = thumb.GetThumbnailImage(50, 50, new System.Drawing.Image.GetThumbnailImageAbort(ThumbnailCallback), IntPtr.Zero);
thumbnail.Save(stream, System.Drawing.Imaging.ImageFormat.Jpeg);
byte[] thumbBinaryData = new byte[stream.Length];
stream.Position = 0;
int m = stream.Read(thumbBinaryData, 0, (int)stream.Length);
//
SaveToDB(imgName, imgBinaryData, imgContentType, thumbBinaryData);
Good luck
-- modified at 8:12 Sunday 16th April, 2006
|
|
|
|
|
I would like to import the C function:
int compress2(Bytef * dest, uLongf * destLen, const Bytef * source, uLong sourceLen, int level);
in my C# application.
But I have no idea what "Bytef" and "ulongf" types are. ( C is unknown for me. )
I though byte[] and ulong, but the compiler will not accept it.
Keep breathing, foks!
|
|
|
|
|
I don't believe those are built-in types. In C and C++, you can alias types using the #define keyword.
#define MyFoo int
...
MyFoo f = 5;
Most likely Bytef is just an aliased type. You'll need to look into the dll source or documentation to find the definition of Bytef.
|
|
|
|