|
I want to enable a user to export a single MS Access Data Table from a multitable database into a separate database. More, I want the user to be able to create the separate database file at the same time he/she exports the datatable to that separate database file. I could simply use File.Copy to copy the entire database to the separate database file, but the users won't need the entire database, just the one table to allow them to archive certain information. Is this possible?
|
|
|
|
|
who can teach me to hacker ID games??
|
|
|
|
|
Noone around here will ever help you steal someone's software. Think about it. You just asked a bunch of developers, who making their living writing and selling software, how to steal the very software they're writing!
Dave Kreskowiak
Microsoft MVP
Visual Developer - Visual Basic 2006, 2007
|
|
|
|
|
If I told you I'd be cutting my own throat!
|
|
|
|
|
I was wondering if anyone knows how to access a control (like a textbox control) that is attached to a MS Word document that has already been created. I need to do it using C#. Any example would be a big help.
|
|
|
|
|
|
I opened up a new Word Doc. Started recording the macro. Created a Text Box and started typing some text in it. Stopped recording of the macro and did an Edit of the Macro to see the code and this is all i got out of it:
ActiveDocument.ToggleFormsDesign
Selection.InlineShapes.AddOLEControl ClassType:="Forms.TextBox.1"
ActiveDocument.ToggleFormsDesign
ActiveDocument.ToggleFormsDesign
ActiveDocument.ViewPropertyBrowser
ActiveDocument.ViewPropertyBrowser
It still does not tell me how to access the Text Box.
I can create on for the Word doc with
aDoc.InlineShapes.AddOLEControl(ref TextBoxName,ref Range);
put i need to get one that is already in the word doc
any ideas?
|
|
|
|
|
So save that document with the textbox in it. press return a few times. Start a macro click on the textbox, stop the macro. I would guess the macro code would have something that what you have above. So I would guess that you need to know which text box it is. It looks like they are numbered. YOu added one so the id is forms.textbox.1. So if you put the correct number in there you should be able to select the text box.
Ben
|
|
|
|
|
Hi All
I would like to implement the "CANCEL" operation while I'm copying a large file because it can takes too much time. I would like to do it in wondeful C# language.
Do you think that creating a separate Thread for the copy operation (implemented using File.Copy method) that could be killed when I call the CANCEL button put in a different Thread?
Regards
ManuStone
|
|
|
|
|
|
Hello
I have a computer which has a share folder with username and password.
I want to copy a file from this folder without having to map the folder into a drive just by a simple copy. What copy command accepts also username and password for file copying purpose ?
Thanks,
Clint
|
|
|
|
|
I don't know of any, but what I do is make sure what ever user is running the process that needs to copy things from the share also exists on that computer with the correct rights. That way there is no prompt for username or password.
Hope that helps.
Ben
|
|
|
|
|
Hello experts,
What do you do when your catch block contains statements with a potential for throwing their own exceptions?
Thanks in advance,
Shy.
|
|
|
|
|
shyagam wrote: What do you do when your catch block contains statements with a potential for throwing their own exceptions?
Same answer as any other situation where exceptions might be thrown: Decide whether it can be handled at that point and catch it if it can, otherwise let it unwind the stack until it is caught.
NOTE: Some exception handling blocks deliberately throw an exception (and place the original exception as the InnerException to the new exception)
|
|
|
|
|
Colin Angus Mackay wrote: Decide whether it can be handled at that point and catch it if it can
Does it mean I should nest a new try/catch block inside of the original one?
|
|
|
|
|
If you have exceptions that you can handle there yes.
--
CleaKO The sad part about this instance is that none of the users ever said anything [about the problem].
Pete O`Hanlon Doesn't that just tell you everything you need to know about users?
|
|
|
|
|
I'm considering a transition from C++/MFC to C# for an upcoming project. Can anyone tell me where to find articles or examples of how MFC concepts might be mapped onto a C# implementation. For example are there any implementations of the Doc/View pattern, printing and previewing, menu enabling and updating etc? Or have I missed the point - is it back to the ancient and abominable collection of forms?
Thx++
|
|
|
|
|
|
Hi,
I have ODBC connectionstring , say, "DSN=xyz, trusted_Connection=yes"
I want to generate equalent SQLClient connectionstring from the available ODBC connectionstring, say, "Server=abc,Database=db, UID='',PWD=''"
Actually i am trying to redirect all connections using ODBC provider to native SQLServer provider.
Is there any way?
Thanks
kumar
|
|
|
|
|
Hey Guys,
Heres another one for ya
I'm inserting data with a liststore(gtksharp) and my problem is that the data I'm inserting allows you to insert rows at a time and my columns are dynamic(coming from a csv file) so for example
musicListStore.AppendValues (multiarray[gtkrow,gtkcol], multiarray[gtkrow,gtkcol+1], multiarray[gtkrow,gtkcol+2]);
This allows me to add data to the current row, called from my multidimensional array, multiarray.
Anyway every time multiarray is called it adds another 'cells' worth of data to the row for in this example there are 3 columns in my sheet. But for example if I decide to open a sheet with 6 columns the next 3 would be missing, the only idea I can come up with is an
if amtofcols = 6 then multiarray[gtkrow,gtkcol]....... mutiarray[gtkrow,gtkcol+5)
etc etc, but with the csv's we're using there is not upper limit and its not the nicest code at all, there must be a more elegant way of doing it but I yet to figure it out.
Entering data a 'cell' at a time is also proving impossibly hard to find information about and I realise this is a gtk widgit so people maynot have much experience but I thought it was worth a shot.
Any help or suggestions appreciated.
Cheers
Tom
|
|
|
|
|
Hi All,
Trying to write a little application to export DFS information from Active Directory and disply the Active DFS link. I've found the objects i need, but unsure how to handle the Partition Knowledge Table (PKT) attribute.
The description from Microsoft is;
"The PKT is a sorted lookup table that requires about 400 bytes per entry. One PKT resides in Active Directory for each Dfs root in a domain-based Dfs. The PKT for a stand-alone Dfs resides locally in the registry."
It seems the PKT attribyte is System.Byte[]. When i export this and convert to string (just so I can see what it produces) i get the following;
"\domainroot¬㨾껷䍖뗵⏢\DOMAIN\DATA\DOMAIN\DATA:.SERVER1DATAĬ`\domainroot\37ca6fad-bb48-45cb-be26-ae234dc71717Â澭㟊뭈䗋⚾⎮읍\DOMAIN\DATA\DRIVERS\DOMAIN\DATA\DRIVERS곰ኞ艍LJ곰ኞ艍LJ곰ኞ艍LJ@4SERVER2drivers܈\siteroot䄻厔䈪궴嫛討 "
I can see the information i'm after (which should be \\SERVER2\drivers) but unsure the best way of getting the information out.
Any ideas?
|
|
|
|
|
Hi!
I am trying to launch from code the default email client. Here's how I do it:
emlText = "mailto:" + strAddress + "?subject=" + strSubject + "&body=" + strBody;
System.Diagnostics.Process.Start(emlText);
If the body text is smaller than 2024 characters the client launches perfectly. If it exceeds 2024 characters I receive an Access Denied exception.
Can anyone please tell me how can I overcome this problem? Thanks
|
|
|
|
|
The reason it's not working is because the maximum length of a query string in IE is 2048 characters.
Check System.Web.Mail for sending emails.
|
|
|
|
|
I figured that out ...but I do not trust SMTP... maybe there is another way
|
|
|
|
|
How to send bulk emails embedded with images? Please provide Examples or code snippets
Shrikant
|
|
|
|