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

Software Development Network >> Drksrvnt's Q&A profile

Drksrvnt

Member List

Shirvo
Karin P
.net sukbir
Touraj
jfberube
priyananda
Alien72
Mike Lapierre
kuria
SasiInfy
Bob Pokorny
amagino
eldiener
curiousss
TPECI
dknapp
Blast
Bobo1234
Matt A
AshishGupta
Only Title

Drksrvnt's Q&A profile

  • Visual Studio Adding fields to report at runtime

    Im setting the datasource of my report to a datatable, which is fine. The problem i am having is that i dont know how many columns there is in the datatable until runtime. I need to be able to add database fields to the report at runtime. In addition i need to be able to format the field based upon its value and the state of the previous field. This report show the availability of a room over a given period. Many thanks Jay Using the standard .NET SDK you do not have the ability to add fields at runtime, you need to use the RAS SDK which is only available if you have Crystal Enterprise, Crystal Reports Server, or Business Objects Enterprise. As for formatting fields based upon thei ...Show All

  • Visual C++ PrintTo command in the ShellExecute

    Hello, I'm trying to use the ShellExecute API to print an HTML file to a specified printer passing the "printto" as the command verb. My default Internet Explorer is IE 7.0 Beta (I tried this also on IE 6), the problem that also I use the PrintTo verb and I pass the printer name to the ShellExecute, the Print Dialog of the IE. Is this a bug in IE Please give me a hand. Your question is actually off-topic as this forum relates to C++ language issues. For a better response, I would go to the Win32 newsgroups here: http://msdn.microsoft.com/newsgroups/default.aspx ...Show All

  • Visual Basic Redistribution

    How does one redistribute PrintForm Are we limited to the provided installers Regards, - Mike Hi - Sorry I didn't realize this thread took a new direction on the EULA for print form. You can find the EULA in the install directory for the component, e.g. C:\Program Files\Microsoft Visual Basic 2005 Power Packs\PrintForm 1.0\Setup\EULA.rtf The other EULA you are pointing to above is for something else. We're still talking about license for PrintForm, right If yes, I think this is well written enough to understand the bottom line. Here is the first paragraph (I encourage you to still read it all): " Microsoft license to User for Use of the Toolkit This license governs ...Show All

  • SQL Server Problem setting Package Variables in SSIS Package

    Hi, I am making use of the DtUtil tool to deploy my package to SQL Server. Following is my configuration: 32-bit machine and 32-bit named instance of Yukon. I have some package variables which need to be set in the code. Previously I did it as follows: Set the package variables in the code. For example: pkgFile.Variables["User::DestinationServerName"].Value = <myvalue> Deploy the package as follows: applnObj.SaveToSqlServer(pkgFile, null, destinationServer, null, null); Here the package was successfully deployed and when i open those packages using BIDS, I am able to see that the variables are set to the values as doen in teh code. Because of oen problem I am not using SaveToSQLServer method. So ...Show All

  • Visual C# Problems with function ?

    Hi There is a problem I am facing at the moment. I have a base class called A; I have 2 classes that inherits from it . B and C. I have a method with 3 overloads . 1 for A ,1 for B and 1 for C. public void DoSomeWork(A a){} .... On calling the method It goes to the proper one by its parameter. Now, My problem is that I am using a factory to get the proper Object for a specific case and I then assign it in an A object (base class). I then want to send it to the method and expects it to go to the proper one but it goes to the one with A no matter the type returned. I always get "in A1" //Base class A1 a2 = new A2 (); //Call the proper function DoSomeWork(a1); public void DoSomeWork( A1 a ...Show All

  • .NET Development Run a process with admin rights

    hi everybody. I have a problem to launch a process with admin rights. The application has to work under Windows Vista (I developp under the last CTP). The account running my application is an admin account and the process I need to launch is "bcdedit.exe". When I run my application, bcdedit (launched by my app) says that it doesn't have enough rights to work correctly. If I run my application by doing right button on it > run as administrator..., the process works correctly but it's not a solution for me. I would like to know if I could run a process specifing rights admin or a windows identity with admin rights. thanks per advance thanks...but no because it asks me the password of the accoun ...Show All

  • Visual Basic How to import vCards?

    Hi all, I want to import vCards in my Vb.Net 2005 application. I tried this code to read the adress: Dim adress as String Dim adress_start as Integer Dim adress_end as Integer adress_start = vCardString.IndexOf("ADR;TYPE=HOME;") adress_end = vCardString.IndexOf(vbCr, vCardString.IndexOf("ADR;TYPE=HOME;")) adress = vCardString.Substring(adress_start, adress_end - adress_start) It works, but I think there is a nicer method to do that. Could you help me Thank you. Instead of the string parsing, which probably would work, you could also try a RegEx.Match. The tricky part there is figuring out the regex expression. You would also want to test the performance of the simple stri ...Show All

  • Visual Studio Express Editions Problem with PictureBox >? Not Working ! Why ?

     I want this photo Usa.jpg to show in picturebox .              if TextBox1.Text = "Usa" then           PictureBox.Show This --> Usa.jpg How  ::In Visual Basic 2005 Express Edition:: Maybe something like this would work better: Private Sub Setpicture() Dim picture As Image = Nothing Dim ofd As New OpenFileDialog ofd.Filter = "Image Files(*.BMP;*.JPG;*.GIF;*.TIF)|*.BMP;*.JPG;*.GIF;*.TIF" ofd.Multiselect = False ofd.InitialDirectory = My .Computer.FileSystem.SpecialDirectories.MyPictures If ofd.ShowDialog = Windows.Forms.DialogResult.OK Then Try picture = ...Show All

  • SQL Server Hidden columns/blank PDF page(s)

    I have been trying for some time to create a columnar report where certain columns can be hidden as requested by the user. I have tried placing the complete column set in the report, and then hiding a subset of columns, but blank pages are produced when rendered to PDF since the report body does not appear to shrink as columns are hidden and justify themselves to the left. I have tried a table, list, and matrix to no avail... Does anyone know of a workaround, a trick, or even a hack that may accomplish what I am after Thanks. Hello Iago, I have found a work around for this problem. It’s a bit hacky, but does work. 1. Collapse all table columns to the smallest they can go so width = .125 2. Resize th ...Show All

  • Visual Studio Team System TFS and .net websites don't work together?

    Hi Guys, While creating Team project, it's reading config values from c:\InetPub\WWWRoot\Web.config file. If I remove that file, it will give me TF30177 ( http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=923532&SiteID=1&mode=1 ) error. But if i keep that file there(c:\InetPub\WWWRoot\), than my .net web-sites stop working. (It gives error for config values as it seems like it reads from c:\InetPub\WWWRoot\web.config location.) Questions: 1. Why TFS read from only c:\InetPub\WWWRoot\ location 2. How can i change web.config file's (for tfs) location 3. Is there any another way to resolve this Thanks in advance. Hi Chintan, Actually TFS doesn't have anything to do with this web.config. It is us ...Show All

  • Windows Forms DataGridView Control - derived column type ListBoxColumn

    I need to define a ListBoxColumn type for use in the DataGridViewControl. I used as template the CalendarColumn example found in MDSN library. It did the work but I need to populate the ListBoxColumn cell from a dataset and on the same row I need to populate a DataGridViewComboBox column datatype from another dataset. The latter works but no idea how to populate the ListBoxColumn. Following is the ListBoxColumn class: using System; using System.Collections.Generic; using System.Text; using System.Windows.Forms; using System.Data; namespace AppLibrary.ListBoxColumn { public class ListBoxColumn : DataGridViewColumn { public ListBoxColumn(): base ( new ListBoxCell ()) { } p ...Show All

  • Visual C++ [duplicate] error C2665: 'operator new' : none of the 5 overloads can convert parameter 1 from type 'const char [71]'

    Below in is the junck of my source code, When I try to compile the programe in VC7, actually it was developed in VC6 by the client and it has migrated to VC7, but when i am trying to build it some erros are occuring, plz suggest me a solution. following is a junk my sorce code: #ifdef _DEBUG #undef THIS_FILE static char THIS_FILE[]=__FILE__; #define new DEBUG_NEW #endif void PostWriteData (EXTENSION_CONTROL_BLOCK* pECB, LPVOID lpData, int size) { CMemBuffer* pBuffer = new CMemBuffer (); pBuffer->Attach(lpData, size, CMemBuffer::newed); PostThreadMessage (WM_THREAD_WRITE_ECB, (WPARAM)pBuffer, (LPARAM)pECB); } ===== the CMemBuffer is a Shared library class, that contains - #ifdef _DEBUG #undef DEBUG_NEW #define DEBUG_N ...Show All

  • SQL Server How to start a service from a remote machine?

    Hi all, I am just curious if there is a way to start a service of one server(such as MSSQLServer) from another server using a command prompt(using the "net start" command), assuming that both the servers are found to be in the same network. Sincerely, --Amde I tried the following command, C:\> svcmgr server1 messenger /start however, it is saying 'svcmgr' is not recognized as internal or external command. After this, I tried to download a Server Manager software, however it requires a Windows Server 2003 and my machine is windows xp. Do you have any idea ...Show All

  • Visual FoxPro SELECT .... INTO TABLE <existing table>

    G_TempDBF = "C:\scratch\" + SUBSTR(SYS(2015), 3) + ".DBF" SELECT field1, field2 FROM myTable INTO TABLE (G_TempDBF) USE (G_TempDBF) ALIAS CUSTOMER INDEX ON field1 TAG field1 I have created a temporary table, stores the retrieved records into it and alias it CUSTOMER How can i reuse this temporary table for other SELECT statements SELECT field3, field4 FROM myTable INTO CURSOR CUSTOMER ---> results in an error saying Alias CUSTOMER has been used. Alex Feldstein wrote: You can't. If you want to add to an existing set, and the previous cursor is R/W (use the READWRITE keyword in SQL statement), then simply APPEND FROM the new tremporary. ...Show All

  • Software Development for Windows Vista Does WCF Can make Transaction With Java Application?

    Hi All, I find documents say that WCF make transaction by using the MSDTC Services. But the WCF follow the WS-AT specific; Does Anyone have tried the transaction function in Windows and JAVA Platform I'm not sure I understand your question. Any two services that implements support for the WS-AT protocol can flow transactions between them in either direction. WCF implements WS-AT, and there are implementations of WS-AT available on the the java platform. To create a WCF service that works with MSDTC via WS-AT rather than OleTX (the default transaction protocol in Windows), I would start by looking here: http://windowssdk.msdn.microsoft.com/en-us/library/ms733116.aspx , especially the section under How to: Create a Tr ...Show All

©2008 Software Development Network