Wiroj's Q&A profile
Visual Studio Passing multi-select report parameters for direct rendering to PDF
Greetings, I have written a custom Windows app to gather parameters for and display multiple reports in a conference room setting. Launching multiple viewer windows and passing common parameters works fine, but I am having trouble doing the same for a direct-to-PDF approach. The ReportingService.Render method takes a ParameterValue collection, but you cannot (it seems) define a parameter with multiple values like so... ParameterValue [ ...Show All
Software Development for Windows Vista How to create custom state activity with StateInitializationActivity?
Hi, I created the following custom activity MyState MyState : StateActiivty {} The problem is I can not add "StateInitialization" activity to my custom state activity. I tried to create "StateInitialization" in code but the compiler gives me errror saying "Cannot modify activities collection ..." If I use MyState activity in a state machine workflow, then it allows me to add "StateInitialization& ...Show All
Visual Studio Express Editions Someone help me make this dll project in c++ able to be referenced in vb.net?
I have this c++ dll project but i cant figure out how to get it able to be referenced in vb.net it always says it cant be referenced. Please Help and post a link to the project you edited or send me a copy of it at josh@winmxunlimited.net The Project source - http://www.winmxunlimited.net/source.zip There could be several reasons for this. What version of C++ is it written in If it has the correct entry points, and it's written i ...Show All
Software Development for Windows Vista Rule Condition Editor Doesn't Like Underscores
If a field in a workflow class contains a leading underscore, it can't be used in the Rule Condition Editor. the dialog throws the error: "Error building the condition: the character '_' is not valid." The field name will work fine in the .rules file, however. <ns0:CodeFieldReferenceExpression FieldName="_counter"> Just a minor observation.... ...Show All
Visual C++ How do I obtain an environment Variable?
have 35 years of experience. I have mostly avoided the C world. when I've had to write in it, I've done OK in VS6. VS2005 C++ is so cantankerous. I'm writing a program that must run standalone and it must be very lean and not rely upon redistributable dlls. I am not in need of a routine that returns the value of the %windir% environment variable in string format. My project is set for a unicode build. The design goal is to have only ...Show All
Visual C++ linking problems (invalid or corrupt file)
Hello experts! I was testing compilation programs with dlls. So I have created simple dll with header: int sum(int size) { return size*2; } And I have compiled it. I have also created simple console application using this library. In project options I have added headers path and libs path, but I have linking errors: Linking... C:\Documents and Settings\Jacek\Moje dokumenty\Visual Studio 2005\Projects\mylib\release\mylib.dll : fatal error LNK1 ...Show All
Software Development for Windows Vista how does the instanceId get set on SqlWorkflowPersistenceService
Hi, I'm trying to set up multiple servers each hosting workflow runtimes of their own. These servers persist their instances to the same SQL server. I can't get the locking mechanism to throw an ownership exception when a second runtime tries to load an instance from the persistance store. Looking at this, the Persistance service provides an @ownerId parameter to the stored procedures, I assume that this identifies which runtime locked the ...Show All
Windows Forms Show beyond the Form
Is there a possibility for a control which is located for example in the right bottom corner of a form to show fully instead of being cut off with the form's border when the Form is not maximized Have you ever noticed what happens when you right-click on your desktop way down in the bottom right-hand corner The context menu doesnt come up with its top left corner where you clicked, like it normally does. Instead it is repositioned to make ...Show All
.NET Development Security issue when connecting to remote server
Hi, I get this error message; Exception Details: System.Data.OldDb.OleDbException: Invalid path or file name [OleDbException (0x80040e21): Invalid path or file name.] I have xp-pro with VS2003 installed. I save the application to a 2003 Server (that also has Sql Server with databases and IIS), and I have an older server, NT4, with a visual foxpro (free tables .dbf) accouning system on it. I created a form, WebForm_1 and conne ...Show All
Visual Studio Express Editions DataGridView's column Bindings with Class
Hi, please help, im using datagridview to present my database. Infomations of columns in DataGridView like "visible" save it to XML file, the columns information will be load from XML in the next time user run the program. Everything is ok. But now i have trouble to bindings column with my Class with property "visible", because column in DataGridView no have "Bindings" property. ...Show All
Visual C++ detect program exit, closesocket, using atexit()?
In a Visual C++ .NET 2003 console application: int _tmain( int argc, TCHAR* argv[], TCHAR* envp[]) { atexit(exit_handler); // open some sockets here while (1) { // handle the socket stuff here } // close the sockets here } static void exit_handler( void) { // try to close ...Show All
Visual Basic Registry Key . . . ? ? ?
Hello . . . :D I need some help on registry. I like to add some keys with their values to registry and that it is easy. I already have do that. Now i need to know how to check if the key that i'm trying to add already exists. Is any way to see if the key exists before i try to write on it Thanks a lot . . . :D You can call CreateSubKey() for a key that already exists without a problem. Use OpenSubKey() to check if it exists ...Show All
Windows Forms "additional information"
Hey guys, Would it be too hard to put a status indicator on the web site somewhere indicating the availability of the server. Ie, a red or green light representing the server status being available or not would be a nice feature. I for on ...Show All
SQL Server Migrating from Acess 2003 to Sql server - Function Val()
Hi folks I do a lot of work with address data. I have been using Acess 2003 as my database but now need to upgrade to SQL Server. My queries have been making extensive use of the Val function to order my queries on address columns. A typical address column might be: 12 The Avenue ....... by using Order By Val(AddressCol) I can sort these rows in ascending house number. I can't find anything in SQL Server that will acomplish this. ...Show All
Visual Basic VS2005 - Localization problems
Hi, It seems impossible to localize forms in VS2005 (as well as in VB2005 express). What I did : - Set the localizable property of the form to true - Select a language for the form (english, for example) - Enter the appropriate controls texts in english - Select another language for the form (french, for example) - Enter the appropriate controls texts in french - etc. When I switch back to english, half of the text has disappeared ! Is ...Show All
