DragonVic's Q&A profile
Visual Basic In need of help with RawPrinter and Win98
I use the RawPrinter class, as per MSDN discussions. This has printed perfectly well from a Win98 client to a shared printer on a WinXP machine. I now get error 120 when I try to run the OpenPrinter. All I know is that we have re-installed Win98 on the client, but I cannot find any info as to what might be generating the error. I can print to the WinXP printer from a WinXP client, just not Win98. Any suggestions My calls are ar per previous discussions in the area: <DllImport("winspool.Drv", EntryPoint:="OpenPrinterW", _ SetLastError:=True, CharSet:=CharSet.Unicode, _ ExactSpelling:=True, CallingConvention:=CallingConvention.StdCall)> _ Public Shared Function OpenPrinter(ByVal src As Strin ...Show All
Silverlight (formerly WPF/E) What controls?
Does WPF/E contain any controls, like button, text box, combo I didn't see any in the SDK documentation. I also didn't see anything that looked like a Table, or FlowPanel. If not then it seems this technology can't really be used to design an application that runs inside of a web browser. You could probably build a button via rectangle objects and click events but I don't know how you'd build a text input control. You could create a hodgepodge application with some HTML controls and some WPF/E graphics but I doubt this would be a compelling user experience; you'd suffer from the inconsistent rendering of CSS/HTML across browsers. It looks to me like the vision for WPF/E has been scaled back - no minimal C# and no controls. ...Show All
SQL Server Changing flat file connection file name property
Hi, I have a task to traverse a folder of CSV files of same format and then populate into one sql server table. Is there a way where I can change the source CSV file name runtime using FOR EACH loop container for flat file connection manager any help would be much appriciated. Thanks, Furrukh Baig I'm assuming you're talking about the foreach loop container in the tutorial (ms-help://MS.VSCC.v80/MS.VSIPCC.v80/MS.SQLSVR.v9.en/sqltut9/html/88a973cc-0f23-4ecf-adb6-5b06279c2df6.htm) Can you use a similar concept to loop thru xml files I have an xml source, 2 sorts and a merge-join. Whenever I change the input file, I need to open my sorts and click ok. How will that work if I need to iterate thru a directory of files ...Show All
Visual C# How to bind xml file to GridView for update and delete
Hi all, I would like to bind my xml file to a GridView. In the GridView, I would allow user to perform update and delete of data. After updating and deleting of data, the xml file will be updated. Does anyone know how to do it Please help. Thanks Hi, bslim In one way, you can load xml to a DataSet and then bind DataGridView to the DataSet. Here is the reference: http://support.microsoft.com/kb/311566/en-us And you can save a DataSet as XML, here is the tutorials: http://quickstart.developerfusion.co.uk/QuickStart/howto/doc/Xml/SaveDataSetXML.aspx and more: http://www.thescripts.com/forum/thread171850.html Hope to put u on the road. Thank you ...Show All
Internet Explorer Development IE7.0 + .NET 2.0 + AJAX = Problems!!!
I installed IE7.0 and now my app’s AJAX control (accordion) and hidden panels are not coming up. Is this a potential bug Is my HTML outdated This is happening on my master page with the AJAX accordion control and on a content page as well. I am running XP SP2 on IE7.0.5730.11. Any suggestions would be greatly appreciated. -Tim Not sure. Since IE7 fixed a bunch of CSS bugs, there is a chance that the fix, broke the accordian implementation, if it was based on old broken behavior. If you can post a URL, I/we can look at it and be able to inspect/verify what the issue is. cheers ...Show All
Visual Studio Express Editions Any pro can help me with this difficult problem
Im having trouble creating a new connection through Visual Studio Web Developer. When I try to add a new connection all it gives me is an error-Unable to data connectionThe DataConnectionDialog could not be intializedWhen I test my page it seems alright going to the localhost but when I try to add a connection it wont let me.What could be the cause And how can I fix this problem I want to connect to the sql server on my computer.. I cant because of the error above Make sure you have the latest MDAC installed: http://msdn.microsoft.com/data/ref/mdac/downloads/ ...Show All
SQL Server Getting a Package's ExecutionID
Hello everyone I'm logging the execution of my package into a SQL SERVER table. Everything works right. I'm also executing this package using a web service, I'd like to retrive the package's executionId after it is executed. By the way, i'm using a Microsft.SqlServer.Dts.Runtime.Package object but i haven't found any property that could give this. any clue thanks a lot Have you searched this forum for executionID There has been many threads around this topic and the current version of SSIS' shortcomings with respect to logging the execution ID. ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Release of XNA Game Studio Express
Could we have more information about the releashe time In witch time zone I will wait until midnight GMT -5. Should a go sleep before and wait until tomorow Jim Perry wrote: If you're really dedicated you'll stay up until you have it downloaded, installed, and made a game. If only some of us were that good at game programming. personally I put off learning DX9 for the last couple of weeks, I am just learning, for XNA and have just been reading up on theory and looking ahead in my physics class. ...Show All
.NET Development Urgent : Unable to connect OS/400 using FTPWEBREQUEST.
I have following command this will for ftp://localhost (windows operating system ) but thrught when connect to OS/400 i Series system : Error is exception = {"The remote server returned an error: (501) Syntax error in parameters or arguments."} FTPAddress contains FTPAdddress : = ftp://ip address/path/test.txt request = ( FtpWebRequest ) FtpWebRequest .Create( new Uri (FtpAddress ) ); request.Method = WebRequestMethods . Ftp .UploadFile; request.Credentials = new NetworkCredential (FtpUserName, FtpPassword); request.Timeout = FtpRequestTimeout; Stream requestStream; byte [] buf; int i; Getting error right here---------> when calling getrequeststream() method. requestStream = reque ...Show All
Game Technologies: DirectX, XNA, XACT, etc. Sprite Doesn't Animate
Alrighty, here we go again with another problem. I used to use a simple sprite sheet, but in recent days I have found I need to add some more functionality. My previous spritesheet class would load a sheet which had all frames have the same height and width. They were laid out horizontally, and the height and width were hardcoded. It worked, but I wanted to make a sprite sheet loader that could load and animate any sprite sheet, provided there was an XML document to explain where to look on the sheet. Thus, the actual frames can be anywhere on the sheet, in any order, just so long as the XML file is correct. So, I wrote that class. Now, come time to test it, the animation part of it doesn't work. Hard coding a frame to use shows that ...Show All
Game Technologies: DirectX, XNA, XACT, etc. How long does it take to make a game?
i'm answering my own question here. For people new to game development: longer than you think! i was just cruising around a forum where some folks were daydreaming about what they'd create with XNA GSE, and giggled a little when i read "Grand Theft Auto" and "FPS": http://forums.gametrailers.com/showthread.php t=32477 The Independant Game Festival has a great site if you want to check out the cream of the indie crop. It's especially valuable because it records how long each game took to complete: http://www.igf.com/02finalists.html You might check out some screenshots and think "three years But that game looks like ***!" Yes, my friends. Yes. :) Start small. Build complexity from simplicity ...Show All
Visual Studio Team System Removing 'invalid rows' from query-result list
I'm using the following code to get the number "developer hours by week" (slightly modified version of http://forums.microsoft.com/MSDN/ShowPost.aspx PostID=326021&SiteID=1 ) . WITH SET [ValidRows] AS ' { FILTER ( NONEMPTY ( ( [Assigned To].[Person].[Person], [Work Item].[System_Id].[System_Id], [Work Item].[System_WorkItemType].[System_WorkItemType], [ Work Item].[System_Title].[System_Title] ), {[Measures].[Current Work Item Count]} ), [Measures].[Completed_Work] <> 0 ) }' MEMBER [Measures].[Completed Work On Period Start] AS ( (STRTOMember(@prmStartDate)), [Measures].[Company_Common_ActualTime] ) MEMBER [Measur ...Show All
Visual Studio 2008 (Pre-release) Callback and exceptions
Hi, Can I send an exception to the cliente when I use a callback I have a duplex communication with a callback, therefore my services are IsOneWay=true, why my services don’t send an exception Example: [IsOneWay=true] void CreateUser(User user); if the service create a user, all clients receive the notification of a new user, but if the service has an exception (the user is not valid) How do I send this exception thank you Thanks for clarifying, that's what I meant when I said OneWay can't throw faults, but I realize that my second comment about wrapping FaultExceptions for Request/Reply might have been confusing... ...Show All
SQL Server CPU Spike with SSAS and SQL Server Management Studio
I'm having a problem connecting to Analysis Services in SQL Server Management Studio. When I select Analysis Services as my Server type, and my workstation as my Server, SQL Server Management Studio spikes the CPU. Usually it will make the connection after several minutes but sometimes it never comes back and I have to kill the SQLWB.exe process in task manager in order to regain control of my machine. The first time I try to connect the CPU is usually spiked by a combination of Explorer.exe (30-50%), CSRSS.exe(30-50%), SQLWB.exe(0-20%), and MSMDSRV.exe (0-20%). If I disconnect and try to connect again, CPU it spike almost exclusively by SQLWB.exe but it takes less time to make the connection. I am running SSAS 2005 SP1 and Wind ...Show All
.NET Development Calculated column
Hi Folks, I have a calculated column in a dataset in my VB 2005 app (added to data set, but not in database) that uses values from 2 other columns multiplyed, and displays that number for the user. Quantity(dec, 18) * Rate(dec,18) = caluculated column 'Total' (dec,18) When ever the user places a decimal number in the quantity column, the value rounds up to the next whole number -- I do not want the number round to the next whole, and also need to limit the results to 2 decimal places. I first thought this was a control problem in a data grid -- it wasn't; I tried seperate text box controls, but with the same results - numbers round up to the next whole. The only other place I could have this problem is in the data set calculate ...Show All
