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

Software Development Network >> z-one's Q&A profile

z-one

Member List

Cammyr
elittle27
Deerhake44
Ravencraft
GrayMatter Software
Ragas
Lucas Condé
twaltz
Pankaj11
Armann V.
averge joe
IceAngel89
dazza33
Stéphane Beauchemin
James A. Gayhart
Nick3
Alex Foygel
MrOctree
ozitraveller
Reva
Only Title

z-one's Q&A profile

  • .NET Development Problem in GZipStream Class

    Hi All, I want to compress some data and send it to a web service as string and decompress it there and use it. I use GZipStream class for this and i'm getting an error "The magic number in GZip header is not correct. Make sure you are passing in a GZip stream" when i try to read from the stream. However i dont get this error when i send the stream as byte array.The problem comes only when i convert the compressed stream to string and try to read it (decompress it). Here is the code public static string Compress( string data) { byte [] buffer = Encoding .ASCII.GetBytes(data); MemoryStream ms = new MemoryStream (); GZipStream compressedZipStream = new GZipStream (ms, CompressionMo ...Show All

  • Windows Forms Can't disable a button

    I am programming in c#. I have a button on my form that when clicked, it plays a wav file using the PlaySound method from winmm.dll. The wav is about 3 seconds long. The problem is that if I keep clicking the button during the 3 seconds the sound is playing, it queues all of the clicks, and plays the wav over and over. My Button is named btn. So I tried: this.btn.Enabled = false; PlaySound(...); this.btn.Enabled = true; Doing this successfully greyed out the button while the sound is playing, but it still accepts clicks, so it didn't fix my original problem. Is there some way to clear the event queue Or is there something else I'm doing wrong. I just want the button to not work while the sound is playing. I have also tried ...Show All

  • SQL Server SSIS- Package Performance Issue

    Hi, I have multiple data flow tasks defined in my package. The task of the package is to extract data from Oracle/InfoLease tables and put them on to a SQL Server 2005 database. Listed below are few queries that I had: 1. In SSIS package, I need to add "Data Conversion" component to convert from Unicode string datatype to String datatype. This was not required in SQL Server 2000 DTS package. 2. By default, Individual transformation is created for each column. Is there a way, to create one transformation for all columns. 3. This SSIS package is being executed as part of a job. The execution time takes around 33 mins. The same functionality of the SSIS package was replicated in form of SQL Server 2000- DTS package an ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. Id like to get into programming.

    Id like to get into programming. I would like to play around with this.. But is there enough tools and info and such out there now for a newer programmer done scripting before also used darkbasic think called ages ago made some simple programs :) Wanted know though this good way for someone learn... Also this dev kit and such so i can make a game play on the 360 correct Joran Omark wrote: Yes, you can play you game on the Xbox, currently for a fee. Yes, it's a good way to learn C#, if someone holds your hand in the beginning. A good place to start might be XNAtutorial.com , if you're a visual person/like to listen. If you are a reader, xna101.net is probably more up your alley. ok ty ...Show All

  • SQL Server Adding subscibers periodically.

    Hi, In my application, i am sending mails to the respective approvers who have to approve the pending requests allocated to them. Currently,i am adding the subscriber using the sql statement : select distinct users from requestapprover. For every user i am adding the subscriber device info and subscription data. So, this way it will send mails to only those approvers (subscribers) whose ids are stored. How do I add new subscribers because this statement will run only once. Is there a way to add subscribers periodically or a way to run the AddSubscriber.cs periodically, so that the new subscriber can be added. Currently, only those subscriber which are added at the first are added. Is this approach good , if not , pleas ...Show All

  • SQL Server Unable to modify Matrix created from report

    Hi All, I am new to SQLServer 2005 reporting and tried to make a simple matrix report with 3 levels of Row Groups (row1, row2,row3) and a single level of column group (year). There are 2 detail elements to be shown in each of the cell ( detail1 (say 20000) + detail2(say Kg) ) so that output in details shall be like "20000 Kg" It was created using report wizard and I have following problems: can not find any property to remove the plus sign ..I had selected enable drilldown.Also I could not locate the matrix properties page allowing me for add more row /column groups Expression lie detail1+" "+detail2 fails in textbox. Why This forced me to use 2 columns but attempts to make border color white (or any ...Show All

  • Game Technologies: DirectX, XNA, XACT, etc. DrawIndexedPrimitives problem

    Hi, I've got some polygons being drawn with the simple shader using DrawUserIndexedPrimitives(... This works fine on my main laptop with a GForce 7800 card, however I run into problems when I try and run on the same exe on my Samsung Q1 (Intel 915G card, dx9 compat with latest drivers and dx 9.0c). The problem is that it only draws polygons that are intersecting either the front or back clipping planes. DrawUserPrimitives however work fine. So I'm at a loss as to what I'm doing wrong. I've tried setting wire frame / alpha blend / scissor rectangles but still the same. Any ideas Cheers, Steve. This could be a bug in our product. We don't have a Q1 to test against, but I am ...Show All

  • SQL Server DTS & .NET

    I have a simple DTS package that is being executed within a .Net application using the MS DTSPackage Object Library. Since I have the SQL Server 2000 desktop tools installed, the package executes with no problems, however, when another user tries to execute it, the following exception is thrown: Retrieving the COM class factory for component with CLSID {10020200-EB1C-11CF-AE6E-00AA004A34D5} failed due to the following error: 80040154 I've tried including all the DTS references, rather than just the Package object reference, and that didn't help. Thanks in advance for your help. THis is really frustrating. 0x80040154 is 'class not registered', i.e. DTS is not installed on this machine. Solut ...Show All

  • Visual C# Printing PDF from specific printer tray problem

    Dear all, For a C# project I would like to be able to print PDF documents from specific printer trays. Up to now I did succeed in doing half the work. 1. I can print PDF documents by doing a DllImport of winspool.drv and send the raw bytes to the network printer. By doing so, the PS/PDF capable printer understands the PDF bytes and prints the PDF flawlessly albeit using the default printer tray. I thought of making copies of the printername with different default trays and use the different names in my application, to no avail... 2. I found a way of printing with different printer trays (using WMI or even better C# PrintDocument). This works perfectly apart from that it is only capable of printing Strings (plain text that is). When I open ...Show All

  • SQL Server Set QUOTED_IDENTIFIER and ANSI_NULLS on all objects...

    Is there any way via T-SQL to run through a database and ensure that QUOTED_IDENTIFIER and ANSI_NULLS is set for all stored procs and functions etc on a database without having to recreate every proc / fn The reason this is an issue is I'm trying to take advantage of indexed views to get a performance increase in an application - but not all of the procs/fn's have historically been created with ANSI_NULLS and QUOTED_IDENTIFIER set - so any proc that's not set correctly will fail once the indexed view has been created. I could I suppose, script out all the procs / functions and do a bit of search and replace to ensure that these are set correctly by recreating all procs and functions - but I'm trying to avoid doing that as I've over 500 da ...Show All

  • SQL Server Programmaticaly associating a schedule with a deployed report?

    I have a report deployment system (in C#) set up such that it takes all the RDL files in a folder and deploys them to the target server. Since many of these reports are computationally fairly expensive, I wanted them to display from a report snapshot, on a daily schedule. Although I know how to do this manually via Report Manager, I wasn't sure which SOAP methods to call on the ReportingServices webservice to make this happen. Anyone have any experience with this or tips Thanks, Arjun It can be set using SetExecutionOptions method ( http://msdn2.microsoft.com/en-gb/library/microsoft.wssux.reportingserviceswebservice.rsmanagementservice2005.reportingservice2005.setexecutionoptions.aspx ) ...Show All

  • Visual C# Same KEY & IV for TripleDES Encryption as well as Decryption in 2 different Win Services.

    Hi, I want to encrypt as well as decrypt a file using TripleDES. My problem is that I am autogenerating the KEY & IV while encrypting the files. As per my project requirement, I have to keep both Encryption & Decryption parts in two differents windows services. Can any one please guide me how to supply same KEY & IV for both I am using the following coding for encryption & decryption: //.......................... private static void EncryptData(String inName, String outName, byte [] tdesKey, byte [] tdesIV) { //Create the file streams to handle the input and output files. FileStream fin = new FileStream(inName, FileMode.Open, FileAccess.Read); FileStream fout = new FileStream(outName, ...Show All

  • Windows Forms urgent help needed -how to redirect a gridview cell to open a webpage on clicking the cell inside the gridview

    hi , here is a small thing i want to do but have no clue how to do it and it is urgent so please reply soon , i have a gridview control in my windows app. and i have a cell that contains the urls of websites all i want to do is that when a user clicks on any of these urls inside the gridview control the web browser opens that url thanks gurpreet See my sample: using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Text; using System.Windows.Forms; using System.Diagnostics; namespace WindowsApplication1 { public partial class Form1 : Form { public Form1() ...Show All

  • Visual Studio Tools for Office Deploying VSTO Word Project: could not find or load customization assembly

    Hello! I developed a custom task pane with VSTO for a Word2003 report and now I would like to enable access for my clients to this document. I copied the document to a server folder in my intranet and tried opening it, but I got the following error:: "The customization assembly could not be found or could not be loaded" "The customization does not have the required permissions to execute." Therefore, I need to grant access to a server folder where the document and the assembly will be located. I checked http://msdn2.microsoft.com/library/k64zb6we(en-us,vs.80).aspx and followed the "How to: Grant Permissions to Folders and Assemblies" procedure step by step. However I still keep getting the same error! I noticed this note "You must be ...Show All

  • SQL Server What does AverageOfChildren aggregate function in SSAS 2005 actually do?

    Folks, Have any of you been playing around with SSAS 2005 to have worked out what the AverageOfChildren aggregate function actually does I was expecting it to do the equivalent of a simple AVG() with a GROUP BY in SQL, but it seems to be doing something additional to that. No-one in the team I work in has been able to work out what exactly it is doing. Any info would be appreciated! Cheers, Kenneth If I'm interpreting what you're saying correctly then, AverageOfChildren works like an average if you are aggregating by a time dimension, but doesn't for any other type of dimension. I suppose the next question would be... why! Why didn't Microsoft provide an aggregate function ...Show All

©2008 Software Development Network