Software Development Network Logo
  • Windows Forms
  • Visual C#
  • Visual FoxPro
  • Visual Basic
  • Smart Devicet
  • Windows Vista
  • Game Technologies
  • IE Development
  • SQL Server
  • Visual Studio
  • .NET Development
  • Visual C++
  • Audio and Video
  • SharePoint Products
  • Microsoft ISV

Software Development Network >> el-chema's Q&A profile

el-chema

Member List

Rattlerr
thedodo
n3sachde
Kevin Rodgers
Hans L
htbrady
LeoFromCanada
BabyGBear
NeerajAg
micronax
pmanisekaran
Mark Frank
AlexDcosta
tchen777
KipK
MShanahan
GlennZarb
Huson
michaelleewebb
Xelestial
Only Title

el-chema's Q&A profile

  • Visual Studio 2008 (Pre-release) failed to print a range of pages using the PrintDialog

    Hi, I've been trying to print a range of pages from a flowdocument in a printdialog using the code below: Dim _pd As PrintDialog = New PrintDialog() If _pd.ShowDialog().Value Then _pd.PrintDocument(Directcast(flowdoc,IDocumentPaginatorSource).DocumentPaginator, _fileName) End If I am using the System.Windows.Controls.PrintDialog. I specified the page range in the dialog & the printqueue was Microsoft XPS Document Writer. All pages were printed out no matter what page range was specified in the dialog. Any idea if its a rtb flowdocument you might want do something like on this post http://blogs.msdn.com/llobo/archive/2007/01/24/printing-richtextbox-content-find-the-idle-printer ...Show All

  • Visual Basic VB6 -> VS2002 -> VS2003 -> VS2005 -> nowhere fast!

    So, the upgrade from VB6 to VS2003 was really painful when it happened. A positive thing to note about it is that when you do that one you get big lists of errors and warnings and things that you need to change. If you then take that code and try to upgrade it to VS2005 you get NO warnings and NO errors and, dang it, a lot of things just don't work. It's very frustrating... Hi there, I'd really like to help you solve this issue, if you can send me a repro project then we can look into this to understand what's going wrong. You can email me at jonathan.aneja@microsoft.com . Thanks, Jonathan ...Show All

  • Visual Studio Express Editions how to make application work with excel

    Hello, I am not sure if this is the right group to ask this question. I need to make my app work with excel. I have managed to get it working with access and add an analysing and charting functionality of excel. Can anybody recommend good resource on how to approach this Do I need to use VSTO I am using vb express(can't afford the paid versions yet...). Is it not good enough Thank you for any help rendered You do not need to use VSTO...You will however have to make a project level reference to the Excel Library (which means you will and your application users will have to have excel installed on thier machine) Hopefully this will get you started: Imports Excel = Microsoft . Office . In ...Show All

  • Windows Forms How to display two columns in dropdownlist of combo box?

    Hi I have a combobox to display the following in drop down list (I am using VB.net or VS 2005). Apple Peach Mango So How to make the dropdown list to display the following (Two Columns). (In access database you can add many colums to the combobox's dropdownlist) Apple | Fruit Peach | Grade Mango | Tropical After made the selction only the single column should display in the combobox Apple or Peach or Mango Advance thanks Hi,vaish,here is another demo which may suit for you a little more. I think  this demo can tell you  more details. =========================== "  The standard combobox doesn't support multiple columns. Use solutions on codeproject like Multi column Combobox vb.Net Multi Colum ...Show All

  • Visual Studio Express Editions Scheduling a procedure

    I need to run some code at a certain time. I can do a While loop controled by a Time variable, but I think that that is too inefficient. What is the best way to do this I have something in mind like the Application.OnTime of VBA. Thanks, Antonio Hi Dave, It works. Many thanks. It needed this syntax If timestart - Now.ToUniversalTime < TimeSpan.FromSeconds(120) Then ...Show All

  • Visual Studio 2008 (Pre-release) DuplexChannel and InstanceContextMode 's problem

    Hi all: I want that a class which implements the serviceContract can recorde something, so I set the InstanceContextMode to be Single . As I did so ,I got a nullReferenceException. the code is here: namespace CallbackServer { class Program { static void Main(string[] args) { Uri uri = new Uri("net.tcp://localhost:8080/CallbackSample"); Group group = new Group() ;//the class implement the ServiceContract. using(ServiceHost host=new ServiceHost (group,uri)) { host.AddServiceEndpoint(group,new NetTcpBinding(),uri); host.Open(); Console.WriteLine("Success !!!"); Console.ReadLine(); } } } [ServiceBehavior(ConcurrencyMode=Conc ...Show All

  • SQL Server INFORMATION_SCHEMA: Probably bug in SQL-2005

    Try to run this script, first in any database under SQL-2000, then in SQL-2005: select COLUMN_DEFAULT from INFORMATION_SCHEMA . COLUMNS WHERE COLUMN_DEFAULT IS NOT NULL In SQL-2000 values of the defaults are in single pair of brackets: COLUMN_DEFAULT --------------- ('') (0) ('') (0) (0) (getdate()) (db_name()) (1) (21) (N'anonymous') In SQL-2005 integer values are in double brackets, and all other defaults - in single brackets: COLUMN_DEFAULT --------------- ('') ((0)) ('') ((0)) ((0)) (getdate()) (db_name()) ((1)) ((21)) (N'anonymous') At the same time, OpenSchema method of ADO: Connection.OpenSchema(adSchemaColumns) returns different defaults in SQL2000 and SQL2005. In SQL2000 column defaults a ...Show All

  • Visual C++ C++ or Visual Basic for Windows Applications?

    I'm new to .NET, Visual Basic, Visual C++, etc. and I'm interested in creating Windows Applications. Which would be better to use, Visual Basic, or Visual C++ (And what about C# ) Thanks. I personally have just switched over to C++, and I have been using Visual Basic.NET for awhile, and I found it a lot easier to learn to program using Visual Basic, but I want more control now over how the program operates so I just switched a few days ago. But Visual Basic is much easier to both start with for learning and also for faster application development as far as I am concerned, unless there are more complex custom procedures required which in that case would be easier. But if you are planning to build window ...Show All

  • SQL Server SQL Table to XML file (Word)

    Please, someone! I have a vary problem. I want to export a table i sql server to a XML file. The XML file should be in word-schema (Labels) How do i do this in a procedure (t-sql) I have never done this before Regards StailB Check out this article by Sahil Malik. Says how to define XML in SQL. But you're probably better of with a XmlWriter or just interop to Word. ...Show All

  • Visual Basic VB.NET Parsing a variable - Left 3 digits and then the 7 last

    I am trying to take a variable that has a number. Lets say digits EX:1234567890 I need to grab the left most 3 digits (123) and the last 7 digits (4567890) and put it in a new variable with 2 spaces between. For the life of me I can not find out how to do so, I thought it use to be LEFT / MID RIGHT, but I am really a beginner to programming so I need some advice using vb.net language. I found substring, but that did not work. I thought it went something like this. var3 = Left(xxxx,3) var7= Right(xxxx,7) var3var7 = var3 &__&var7 messagebox.show(var3var7) Anyway I have no clue. Any help would be appreciated Thanks You can still use the mid, left and right methods which are Basic methods, these are p ...Show All

  • SQL Server FTP Task - Delete remote files always fails

    Hello, I have two FTP Tasks configured in my SSIS package. One is for "Receive files" and the other is set for "Delete remote files." Both use variables for the source/destination paths. My remote path variable contains a wild card in the name field such as /usr/this/is/my/path/*.ext and it is working to FTP all the .ext files to my working directory. I then rename the files and want to remove the original files from the FTP server. I use the same variable as the remote path variable in the delete as I do in the receive. Using the same FTP connection manager for both tasks I am always getting a failure on the delete. The FTP connection manger is setup to use the root user. Using a terminal I am able to open an ...Show All

  • Visual C++ MFC based applications fail to compile

    Hi I'm using visual studio 2003, and trying to create MFC style applications and dialogs. Before adding any code I test compile. And the following errors appear: c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afx.h(1499): error C2059: syntax error : 'string' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afx.h(1518): error C2059: syntax error : 'string' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afx.h(1652): error C2059: syntax error : 'string' c:\Program Files\Microsoft Visual Studio .NET 2003\Vc7\atlmfc\include\afx.h(1499): error C2751: 'ATL::CTraceFileAndLineInfo' : the name of a function parameter cannot be qualified c:\Program Files\Microsoft Visual Stud ...Show All

  • SQL Server Incorrect PageAudit Property

    Hello, after a fatal server crash (with no backups!!) I have tried to re-attach a database but I get the following message; " Msg 5172, Level 16, State 15, Line 1 The header for file 'E:\Database.mdf' is not a valid database file header. The PageAudit property is incorrect." The database files ( both mdf & ldf ) where recovered from a file system copy which was made while SQL Server 2005 was still running. The files where copied with Symantec Backup Exec (10d). Is there any way that the database can be recovered from these files (I have tried a few 3rd party tools ie, Apex SQL Log & Recovery for SQL Server, but none of these where successful ) Would Miscorsoft Product Support be able to recover any dat ...Show All

  • .NET Development operation Timeout

    Hi all, i am calling a webservice method from the window application. The call will return large amount of data. but i am receiving the error as System.Net.WebException :The operation has timed out i have set the timeout property of the local proxy to 8000 miliseconds. but then also i m getting the same problem. Please tell the reason for this behaviour and solution to get rid of it. Thanks in advance, ...Show All

  • Visual Studio Express Editions Return object value from function

    Hi. I am trying to return an object from a function. I will able to return by using pointer. However, I would like to return by value. If fails. Here is the failing code: The class is given as follow: public ref class itemProperty { public: String^ Parent; String^ Code; public: itemProperty(); ~itemProperty(); }; itemProperty::itemProperty() { Parent = ""; Code = ""; } itemProperty::~itemProperty() { } itemProperty addItemProperty(void) { itemProperty tmpItem; tmpItem.Parent = this->txtBoxParent->Text; tmpItem.Code = this->txtBoxItemCode->Text; return tmpItem; ---> The Failure is pointed to here } It gives the following error while compiling: Error 1 error C2440: 'return' : ...Show All

©2008 Software Development Network