Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Wanet Telecoms Ltd on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by Durandal66

  1. Durandal66

    why VB more popular than C# and Java?

    If you want to build something with a GUI and don’t mind a high overhead, then VB is your choice. Most companies need a simple application that modifies data of some sort, usually in a database. They also want the ability to change that program quickly and make the GUI very adaptable. Again...
  2. Durandal66

    RadioButton Event Handling... Is There a Better Way?

    Hackish solution, but it may give you some ideas: //Create some flag private int IgnoreListBoxChanges; // Here is the Radio Button controller ... RadioButtonEventHandler(...) { IgnoreListBoxChanges = 1; ...Update List Box... IgnoreListBoxChanges = 0; } // Here is the List Box...
  3. Durandal66

    List of tables via query

    I found that sending the command "sp_help" does the trick nicely. This returns all views, system tables, user tables, stored procedures, primary key constraints, and the default constraint. This data is presented in three columns, Name, Owner and Object_Type. I built a data reader...
  4. Durandal66

    List of tables via query

    Thanks for the effort, I have been smashing my head on a wall over this one for awhile too. -Andrew R.
  5. Durandal66

    List of tables via query

    I guess I should have mentioned that im using MSSQL. Sadly, the show statement isnt recognized. Any other ideas? -Andrew R.
  6. Durandal66

    List of tables via query

    I was wondering if there was a way to generate a list of all the tables in a database by using an SQL Query. I have found methods of doing this with Java using their libraries, but I would much rather do it using straight SQL. If this is not possible, perhaps there is a way using C#? Thanks...
  7. Durandal66

    Visual Studio Question

    VS.NET saves your project whenever you compile. If you compiled at anytime between your project load and the time you quit, then all of the changes that you made will be saved. This save isn't prompted, and I don't think there is a way to prompt the user. Otherwise, VS.NET should prompt you...
  8. Durandal66

    Printing all pages from a MS Word document.

    Wait a second, that link is bad, try here? http://msdn.microsoft.com/library/default.asp?url=/library/en-us/dv_wrcore/html/wrtskhowtosenddocumentstoprinter.asp Sorry bout that, -Andrew R.
  9. Durandal66

    Printing all pages from a MS Word document.

    object oPrintPages = "1"; Looks like you are telling Word to print one page. Go here for some more info: http://msdn.microsoft.com/library/default.asp?url=/libr... -Andrew R.
  10. Durandal66

    dynamically generating a pdf file

    I am also looking at making PDF fils on the fly. While I havent reached that stage of development, I have done some snooping around. This site looked promising: http://www.o2sol.com/public/webui/home.shtml -Andrew R
  11. Durandal66

    Printing all pages from a MS Word document ?

    object oPrintPages = "1"; Looks like you are telling Word to print one page. Go here for some more info: http://msdn.microsoft.com/library/default.asp?url=/library/en-us/odc_vsto2003_ta/html/WordObject.asp -Andrew R.
  12. Durandal66

    No Owner Drawn listView in C#!!!!!!!!

    Change Color for an entire row in a list view: // Assume we have a ListView with 3 Cols string InsertItem[] = new string[3]; InsertItem[0] = "Text Here 1"; InsertItem[1] = "Text Here 2"; InsertItem[2] = "Text Here 3"; // Set up the color you'd like the row to be...
  13. Durandal66

    date time format

    Are you trying to avoid the addition of the 12:00:00AM to the end of your date? If so, just try this (there probably is a better way, but this does work). string[] parsed = new string[3]; char[] space = new char[1]; space[0] = ' '; parsed = YourDate.Split(space, 3); YourDate = parsed[0]...
  14. Durandal66

    Appending Word files in C#

    I found a way to make this work! What I do is first create a new file that I will output. I save it with the settings I want, close it, and then re-open it. (Not 100% sure that I need to do this, but it works). I then open the first file that I would like to append, select it all, and copy...
  15. Durandal66

    Appending Word files in C#

    Here is my situation. I have a collection of word files (.doc) that include tables, pics, headers, bullets, pretty much a little of everything. I need to select a set of these files, say 2 or 3, and then combine them together in order, add a table of contents, and save them as a new unique...

Part and Inventory Search

Back
Top