AviRup's Q&A profile
Visual C# Zebra printer issue
Hi, A guy who used to work in my position created an application in c# to print a label in zebra printer Ht-146. I am so new to this kind of application and not sure how he did that. I think he used EPL2 programming language to print it. My question is, is there any way that i could preview the label before printing it. Below is the code to print the label: public int printGreenLabel( string field1, string field2 ){ StringBuilder sb = new StringBuilder(2500); //O-Hardware oprions. O- Disable all the options sb.Append("O" + Environment.NewLine); //Q-will cause the printer to recalculate and reformat the image buffer. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Distorted texture after lost/reset device
Hi, I'm drawing a textured mesh using DrawIndexedPrimitive, using an effect interface. After a windowed/full screen toggle the texture appears distorted. Interestingly when I draw another mesh in wireframe mode in the same render call the problem doesn't occur. Can somebody help Nico I just dumped the tex coords before rendering the mesh with the undistorted texture and than before rendering the distorted version. They are identical. But interesting is the result of your second suggestion: to use the tex coords as color values in the pixel shader reveals that the tex coords in the undistorted render cal ...Show All
SQL Server Hidden objects causes additional pages in pdf
I have some report parameters which show or hide additional columns in a table or one of two possible charts of the data (line or bars on exact the same position). the report design is to fit fully to one A4 Page. In the web the report looks OK (there a scrowl bars - but the do not disturb really), but in PDF export the report prints additional empty pages (only header and footer). It seams the hidden objects count towards the page width and hight! and so the page does not fit anymore to one page. Is there a way to work arround this problem set a print area or force the report to only one page for the PDF render with cutting everything els ...Show All
.NET Development How can I make VS 2005 use .net 1.1 Framework?
How can I force VS 2005 to use the older .net frameworks I'm trying to write an application and make it as compatible as possible. Being stuck with using the .net 2.0 framework is going to force me to scrap my project. There is currently a workaround using msbuild to target the 1.1 Framework from within VS2005: http://blogs.msdn.com/jomo_fisher/archive/2005/04/22/410903.aspx and http://www.longhornblogs.com/robert/archive/2005/06/03/14156.aspx and http://www.hanselman.com/blog/BuildingNET11ProjectsUsingVisualStudio2005.aspx The feature is coming soon to be built in without having to do this wor ...Show All
Windows Forms Checked Items in DataGridViewCheckBoxColumn
Hi all, I have a DataGridView control binding with a DataSet, and a DataGridViewCheckBoxColumn is placed at the last column. Now, I want to get the checked items from this DataGridView and do other processes. Can you tell me how can I do this (E.g. loop all rows in DataGridView and then cast the CheckBox control, so that I can retrieve the value of the CheckBox as well as the values of cell[2] and cell[3].) Thanks, Peter foreach (DataGridViewRow dataGridRow in dataGridView1.Rows) { int i = ((DataGridViewCheckBoxColumn)dataGridRow.Cells["checkbox_col"]).Value; &n ...Show All
Visual Studio Express Editions Form2Form Communication Problem in Visual c# Express
Ok gang, I have been doing research on the net and on these forums for about 3 days now and I'm still stuck with the same problem. There are tons of expanations out these but I dont understand why they dont work for me. I have 1 main form which is a MDI parent I have a second form which I call and make a child. Like this public void newProjectToolStripMenuItem_Click(object sender, EventArgs e) Form newproject = new NewProject(); newproject.MdiParent = this; & ...Show All
Visual C# How do I compare types in C#
I want to check if an object is of a certain type, but the compiler keeps telling me that "x is a type and it is used like a variable". Can anyone please tell me how to do this I think the C# books I have consider this too easy a thing to be worth mentioning. Or I'm prolly not looking where I should. Nonetheless, any help would be appreciated. Thanks, Razvan Use the is keyword, followed by the type name: Button button1 = new Button(); if (button1 is Control) { // button is a control } ...Show All
Smart Device Development Pls give me some advice!
Hello there, I am a new comer to this smart device development world. now I have some problems with creating a smart device dll using VS 2005. The problem is I know little about developing DLLs. Is there anyone who has any online tutorials or useful sites about it especially for VS2005 Thank you very much... Here's a pretty thorough coverage of DLL's. http://msdn.microsoft.com/library/default.asp url=/library/en-us/vccore/html/_core_DLL_Topics.asp I remember a time when I was leery of writing code in DLL's. Here's an overview. 1. The entry point is DllMainCRTStartup(), or its wch ...Show All
Visual Studio VSS Get Command
Is there any way I can perform a VSS command line get to obtain files checked in during a specified period (e.g. from May 23 to May 24) You can do that by using the -V option. Example: ss Get $/test -Vd5/24/05~5/23/05 or ss Get $/test -Vd5-24-05~5-23-05 Note: You could also do it by date and time. Example: ss Get $/test -Vd3/03/95;3:00p~3/03/95;9:00a Visit http://msdn.microsoft.com/library/default.asp url=/library/en-us/guides/html/vsgrfss_get.asp for more information about command line Get or look up the keyword "Get command" in VSS help. Visit http://msdn.microsoft.co ...Show All
Visual Studio 2008 (Pre-release) "windowless" controls for embedding
Not entirely sure this is the best place to put this but... .net obliterated the ability to create windowless controls as I understand it. Now, there are some of us out here that build web distributed applications that, from time to time, need "thicker" controls to provide functionality we can't build effectively in browser technologies. The problem is, anything we build needs to play nicely in the z-order heirarchy of the browser window. I know that YOU know this is a significant problem. So, my question is this: does Avalon give us any new abilities to create embeddable controls (controls we can embed in a browser p ...Show All
SQL Server SQL Server 2005 Trigger fires per statement or per Record
Hi In SQL Server 2005, does TRIGGER for DML fire per statement or per Record If both, can we define the way it should fires. thanks / ramanuj Once per DML statement. You need to build triggers that expect >1 row in the INSERTED and/or DELETED tables. Sometimes it takes some doing, but once complete it is really a very efficient way to write triggers, since operations happen once. It can takes some wrapping your head around though :) ...Show All
Visual Studio Team System Where to download MSFWinBuild?
I'm in the process of customizing the MSF Agile Process Guidance. I have been using the Process Guidance Customization Guide from the Visual Studio October SDK. This guide mentions that the MSFWinBuild Tool is useful to pre-render the HTML files. The guide says that this tool can be downloaded from http://msdn2.microsoft.com/en-us/library/ms243893.aspx . However, I can't find the download. Where can I download this tool from Thanks _____________________________ Sarah Cameron - InCycle Software Hi Sarah, The MSFWinBuild site is http://www.gotdotnet.co ...Show All
.NET Development Accessign exchange server calendars from remote webapplication
Hi I need to access all users calendar data residing on a Exchange 2003 server from a webapplication residing on a remote ISS server. In general I need to check if employees are busy or not at a given time-intervall, and make it possible to schedule meetings for them from our webinterface. After searching around msdn I havent yet come up with a good way to do this, as I understand it I can not use CDO, and have to rely on WebDaV for this kind of communication Link to articles or books would be appreciated. Regards Janni ...Show All
Windows Forms Combining checkbox and comobox behavior in datagridview
Hi all, I want to have checkbox as well as combobox as one of the column type in my datagridview. There are a lot of 3rd party software available to emulate for this kind of behavior. I want a similar behavior. Idea is to give the user multiple choice in a combo box and then he can select one of more choices. Could someone provide me with some hints or sample code. Regards, Raj ...Show All
Visual C++ Command Line Arguments
I'm kind of new to C++ and am having a few problems getting started. I'm just wondering does anyone know how to pass a command line argument to a program using the Microsoft Visual C++ software Any help would be greatfully appreciated. Thanks in advance, Neil. Neo83 wrote: Thats the problem man, I don't know how to pass parameters using Visual C++ throught the interface. Hope you know what I meen What do you mean by that To call the example1 function you showed above, just invoke it from main . ...Show All
