paruchuri's Q&A profile
Software Development for Windows Vista Printing to specific output bin
Is there a way to send the printed output to a specific bin (printers with multiple output bins) Thanks You can specify the output bin as a Feature in your print capabilities document with psk:JobOutputBin with option and scored properties . PrintTicket will have the bin selected as specified by you. Here is the sample for specifying output bin in your print capabilities document: <psf:Feature name="psk:JobOutputBin"> <psf:Property name="psf:SelectionType"> <psf:Value xsi:type="xs:string">psk:PickOne</psf:Value> </psf:Property> <psf:Option constrained="psk:None"> <psf:ScoredProperty name="psk:Bin"> <psf:Value xsi:ty ...Show All
Visual C++ F1 help -> "Inforrmation Not Found" ?
The online help seems to show me the "Information Not Found" page quite often, even for things that it seems to find. For example, in a .c file I hilight "EnableMenuItem" and hit F1. I get the "Information Not Found" page, but down in the "Index Results" window it shows 1 topic found, and I just have to click on it, and then it shows up in the main help window. Why doesn't it just display this instead of telling me information not found Maybe I don't have something configured right Any help would be great. Thanks, Mark Beiley Software http://www.beiley.com Is there a newer Windows SDK than the one that comes with VS2005 available now that we can download that w ...Show All
Visual Studio Tools for Office Optional Parameters and overloading in a C# Managed Automation Add-in for Excel
I have successfully built a managed automation add-in for excel which exposes a couple of user-defined functions that can be called as a worksheet function from Excel - it works great, however.... It now needs to be a bit smarter, by being able to handle an optional parameter, or handle different types of parameters. For example, I would like to be able to have a couple of forms of a function as follows: public double ListPrice(string productid)... public double ListPrice(string productid, string option)... public double ListPrice(Excel.Range r)... public double ListPrice(double configid)... My guess is that COM doesn't understand overloading, because calling one of these forms returns #VALUE (assuming an exception occ ...Show All
.NET Development deattach from data base
HI all we used this statement in vb.net to attach to the data base conn.ConnectionString = "Data Source=.;AttachDbFilename = " & str_data & ";Integrated Security=True;" if we want to deattach from database what i have to write in my code in vb.net thanks in advance ...Show All
Game Technologies: DirectX, XNA, XACT, etc. LockRect on Direct3D Mobile Fails with INVALIDCALL error
Is it possible to do a LockRect on a texture in Direct3D Mobile I keep getting an D3DMERR_INVALIDCALL. I tried it with one of MS's samples like this: // Load the texture map resource (banana.bmp) if ( FAILED( D3DMXCreateTextureFromResourceEx( g_pd3dmDevice, GetModuleHandle(NULL), MAKEINTRESOURCE(IDB_BANANA), D3DMX_DEFAULT, D3DMX_DEFAULT, 1, 0, D3DMFMT_UNKNOWN, texpool, D3DMX_FILTER_POINT, D3DMX_FILTER_POINT, 0, NULL, NULL, &g_pTexture ) ) ){ return E_FAIL;} D3DMLOCKED_RECT d3dlr; HRESULT result; result = g_pTexture->LockRect( 0, &d3dlr, 0, 0 ); This last function fails. Am I doing something wrong Thanks Found the answer. I should be using "D3DMUSAGE_ ...Show All
Visual C++ Is there is any way where by i can excute a insert sql query carrying more than one 1 record.?
Am using vc++ 6.0. my application needs in such to save a 100 records in one seconds. but what i have here is the following set of code. actually i execute every insert query for each records. it takes avg 20 mins to save 1000 records. Is there is any way where by i can excute a insert sql query carrying more than one 1 record. TRY { db.ExecuteSQL(sqlQuery); } CATCH(CDBException, pEx) { TCHAR buff[80]; pEx->GetErrorMessage(buff,80); //AfxMessageBox(buff+sqlQuery); pEx->Delete(); } END_CATCH One way would be to pass the values as XML, use OpenXML to turn them into a table, and then use insert into. This would probably require writing a stored proc. It's not going to run within a second, I don't reckon. ...Show All
.NET Development Connecting to Access Database
Does anyone know how to connect to a access database using vb.net I created the database in access and added the Odbcdataadapter and was able to preview the contents of the database. I have a text box with a next button and a new button. Each time I click next i want to see the names that i have in the database appear. When i click new i want to be able to enter a new name in the textbox and it gets written to the database i already have with the names. Any thoughts Thanks!! what kind of command i'm i suppose to put in : Dim theOdbcDataAdapter as new OdbcDataAdapter(theCommand) i am gonna assume that " Dim theCommand as new OdbcCommand("SELECT * FROM [ tableName ]")" where it says ...Show All
SQL Server connecting to SQL express through VB
Hi all, I have SQL server express edition 2005 installed on my computer and using VB in MS Access to run some queries. The VB function looks something like this.. Dim dataRS As New ADODB.Recordset Dim cnnSQL As New ADODB.Connection Set cnnSQL = New ADODB.Connection cnnSQL.ConnectionString = "Provider=SQLNCLI;Server=.\SQLExpress;Database=TestDB;Trusted_Connection=yes;" cnnSQL.Properties("Integrated Security").Value = "SSPI" cnnSQL.Open dataRS.Open "SELECT dbo_Table_1.* FROM dbo_Table_1", cnnSQL, adOpenStatic, adLockOptimistic The code fails on the last line with message "Invalid object name 'dbo_Table_1'" (yes, I verified that the table actually does exist in the DB) I must be doi ...Show All
Windows Forms How: Cross Thread Operations
Hello everybody. What is the way of accessing something from another thread.... For example, I create an instance of a form and show it... Then I create a new thread and start a method in it.... On the last line in this method I want to close the previously showed form.... Could you point me some directions about this .... thank you in advance! if you close the previously shown form that initialized/instantiated the thread you are running then really you are closing your application. you can iterate through the Application.OpenForms collection which gives you the collection of forms that are open if this helps ...Show All
.NET Development notifyIcon works with windows forms but not services....
If I create a NotifyIcon in a designer of a windows application and assign an icon to it - it works just fine. It shows up in the tray, and behaves just as it should. However, if I create it in a windows service, then install that service and run it - the icon doesn't show up in the tray. I have no idea why. Any suggestions oh also, I couldn't find a better forum to post this in, so hope this works. WOW! Great work Sneha. I am very thankful to you for this nice solution. Keept it up. You Rocks! Regards, Sandip. ...Show All
Windows Forms AND SUDDENLY...
WHAt the heck is this The form referred to itself during construction from a default instance, which led to infinite recursion. Within the Form's constructor refer to the form using 'Me.' Hide at ControlsLibrary.My.MyProject.MyForms.Create__Instance__[T](T Instance) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 180 at ControlsLibrary.FormTemplate..ctor() in D:\Docs\Information Technology\ControlsLibrary\ControlsLibrary\Forms\FormTemplate.vb:line 12 at ControlsLibrary.MainMenu..ctor() okay i got it , it's about a control that i declared as shared., i commented the part controls.add(thecontrol) and i can see my form , but is it supposed to work like that ...Show All
Visual Basic How do I completely unload a form?
Hi all, I have a form that I use to get the user to input such as a username and password in order to make a network connection. This connection can be disconnected and reconnected as many times as neccessary whilst the application continues to run. I obviously, therefore, need the form's text boxes, combo boxes etc to reset to their blank versions every time that the form is shown. In VB6 this was easy; you just unload the form which completely removed the form from memory and thus the next time you showed it it was reset to it's blank state. In VB 2005, however, there is no unload so we have to use Close. I have done this and assumed that it would function in the same was that unload did in VB6. The problem is that when I c ...Show All
Visual C# c# and .mdb files
I am working on a project that I will be using Microsoft Access to store data. When I package this software, is there a Microsoft Runtime I can inclide that will allow other users to use my software without having Microsoft Access Installed Hopefully that is clear enough. My software uses Microsoft access but if a user does not have Access or a runtime they will not be able to use my software. Thanks in advance -Mike Galin Iliev wrote: When I need to ensure something will work on client machine there is no better way than testing it. For testing I use MS Vuitual PC 2004 SP1 and I could setup any environment I want on single hardware machine :) take a look here hope this helps You can only use that with 20 ...Show All
Visual C# Move objects between System.Collections.List
Hi! I have two Lists (System.Collections) and I want to move (or copy) objects from the first to the second one. This is my code for(int x = 0;x < list1.Count;x++) { list2.Add(list1[x]) } But every time C# gives this error: Object reference not set to an instance of an object. How can this problem be resolved Thank you! Yes of course, I always make that mistake. Wouldn't new List(list1) be the same as iterating through one list and adding the contents to the second as the original poster though. ...Show All
SQL Server Using AMO to Update and then Process an AS 2005 database
Using AMO, I connect to an AS 2005 database, which has the following connection string: ConnectionString = "Provider=SQLNCLI.1;Data Source=MyServerName;Integrated Security=SSPI;Initial Catalog=MyDBName" And then I do the following: amoDataBase.Process(ProcessType.ProcessFull) ‘ works properly amoDataBase.Update(UpdateOptions.ExpandFull) ‘ works properly amoDataBase.Process(ProcessType.ProcessFull) ‘ This one returns the following error: ex {"The following system error occurred: Incorrect function. . Errors in the high-level relational engine. A connection could not be made to the data source with the DataSourceID of ' MyDatasourceID ', Name of ' MyDatasourceName '. Error ...Show All
