RichardS71's Q&A profile
Visual C# Properties Question
I have a C# Class but I am not sure how to do something, I am also working with ClassDiagram's so if it can be done there instead of code let me know how. this relates to shipping orders Class: ShipBoxes Properties: //First Package: PieceNum PackageWeight PackageCOD PackageDVal //second package PieceNum2 PackageWeight2 PackageCOD2 PackageDVal2 Is there a way to only have one set of properties then just add a second set of the same Properties Instead of adding a "2" or "3" etc Soi can have unlimited number of packages if needed I hope this makes sence. Tdar ...Show All
Visual C# 3MB text to PDF
Hi, I'm using crystal to generate a pdf report, but it's exceeds the memory limit.... I tried using ABCpdf but also when the html reach the 3MB it doesn't generate also... Does anyone knows a way to generate PDF reports without size limit I tried iTextSharp and didn't work also.. Thanks I don't know much about generating PDF reports but couldn't you send your text to print and direct it to a PDF print driver such as Acrobat, or PDF995 Sorry if this turns out to be irrelevant! ...Show All
Windows Forms Help with Windows Service Exception in AfterInstall Event
I am using the code below in AftferInstall even in a windows service project.I have cretaed a setup and when i install the project i get an exception "An exception occured in OnAfterInstall event handler of System.ServiceProcess.ServiceInstaller. - > Not found" when the remove the code below then the service installs fine.So there is some problem with code below.Here serviceController is the component that i placed from toolbox ConnectionOptions coOptions = new ConnectionOptions(); coOptions.Impersonation = ImpersonationLevel.Impersonate; ManagementScope mgmtScope = new System.Management.Managemen ...Show All
Visual Basic Making a Database
Hi i was wondering if there are any tutorials around on creating databases in vb6 and vb.net If you have Visual Studio 2005 Standard or above (Maybe even Express ) you can simple add a SQL Server 2005 DB to your project. You can do a lot of fundamental DB creation tasks in the Sever Explorer (ignor the Dataset Creation wizard until you finish creating the DB). VS has integrated functionality for creating tables and modifying columns and restraints and relations and my personal favorite: Creating Stored Procedures (and testing this stuff all out with the query editor). If you have Express you might still be able to do it but I can't pers ...Show All
Visual Studio 2008 (Pre-release) FileStream transfer
Hello! Which is the easiest way to transfer file stream from server (service) side to client side Thank you in advance. Best regards, Saso Softwaremaker, could you be so kind and write short example. Thank you. Saso ...Show All
SQL Server Using stored procedure or not?
Hi, I have a table which consists of: -an id (primary key) -a type -a subtype -a userid Depending the type and subtype I have to fetch records in other tables. This has to be for one user, grouped by each type/subtype For instance: type= 1 and subtype=1; type=1 and subtype=2; type=2; type=3 and subtype=3; type=3 and subtype=4; type=4 and subtype= between 5 and 10 I tried creating a stored procedure, with cursor in it, but it is only returning the first row. IF EXISTS (SELECT name FROM sysobjects WHERE name = N'test_with_cursor' AND type = 'P') DROP PROCEDURE test_with_cursor GO CREATE PROCEDURE test_with_cursor @StartDate DateT ...Show All
Visual Studio 2008 (Pre-release) 3D Animation
When I try to animate the property of a ModelVisual3D I get "Multi-step property paths may not be specified on an object of type 'System.Windows.Media.Media3D.ModelVisual3D'" And this happens with GeometryModel3D too. Is this by design or is it a bug The only way to avoid that is to go up on the tree and use the viewport as the target for the animation. The problem is when ModelVisual3D contains other ModelVisual3Ds in it's Children property - because there is no dependency property (ChildrenProperty) I cannot build the path. Thank you, Valentin Iliescu ... and if I knew how to spell I would have ...Show All
SQL Server Error 14027 When Trying to Configure P2P Topology
I'm beginning to wonder if replication is worth the trouble I've had to spend on it! Trying to create a simple peer-to-peer replication topology. I can create the initial publication. I can change the property to allow P2P. I can backup the database and I can create a snapshot. When, however, I try to configure the peer-to-peer topology, I get a 14027 error message telling me that ONE table out of 250, or so, "does not exist in the current database." That's pretty troubling given that I can run a select query against that specific table. I would appreciate any information that would help me to understand what's going on or suc ...Show All
SQL Server Major problem with REPLACE-expression in the Derived Column Transformation
I'm importing a csv-file delimited with semicolons. Firstly I LTRIM the columns "in place" and the data imports fine. All the numbers in right columns in the target table. Then I add another Derived Colum Transformation to replace decimal character comma (,) to a dot (.) in order to convert the string/varchar value to numeric. But here I run into trouble. Running the task ends in success but the result in the target table (same as above) is not. All the commas are now dots as expected but what is worse is that SSIS have added values in cells that should not be there. I get values in cells that shoud be empty! Shortly: Only LTRIM ...Show All
SQL Server Generic staging design of data warehouse
I have a question about staging design using SSIS. Has anyone come up with an ETL design that would read table names from a generic table and dynamically create the ETL to stage the table. 1. Have a generic table which would have table name and description and whatever else that was required. 2. Have a master ETL that would enumerate through the table and stage all the table names found in the generic table. This way I wouldn't have to create an ETL which would hardcode the names of 300-500 tables and have the appropriate 300-500 data sources and targets listed. Not sure if I am making sense but I hope someone understands the att ...Show All
SQL Server MSDTC - The Transaction Manager is not available
I am trying to do something simple to test TransactionOption. I have a ScriptTask (out of the box), which runs fine. To test TransactionOption, I set the Package Properties TransactionOption = Required. Straight away the package fails with the following message Error: The SSIS Runtime has failed to start the distributed transaction due to error 0x8004D01B "The Transaction Manager is not available.". The DTC transaction failed to start. This could occur because the MSDTC Service is not running. I am running this on my Laoptop, which has XP Pro with SP2. I checked the services and MSDTC and it is running fine. I have checked the Even ...Show All
Visual Studio 2008 (Pre-release) Track only with Thumb (bug or bad design?)
It seems that Track can be used only with a Thumb. I would like to replace Thumb with my own implementation. Is it possible ...Show All
Windows Forms .gif Animation Play w/out Looping in Visual Basic .NET 2005 Beta 2 Express
Hi, can anyone tell me how to make a .gif animation play without looping When I load one into a picturebox, even when the file is not designed to loop, it loops anyways. How can I stop this Thanks, The Digital Pioneer To prevent the GIF from playing at all you can set the PictureBox.Enabled property to false. However to play the GIF once without looping you will probably have to create your own control. To do this you could use the Image.GetFrameCount inconjunction with the Image.SelectActiveFrame method to only loop the GIF image once. ...Show All
Software Development for Windows Vista Distributing directshow
How do I distribute DirectShow now that it's not part of DX Or is it still part of the DX runtime Are there any WinSXS issues I should be aware of I thought I had WinSXS DX folders, but I don't anymore, so I'm not sure what's going on, nor can I find any DX merge modules in the SDK. This is an excellent question, to which I have not received a satisfactory answer. My GUESS is that 9.0c is going to be the last DS version shipped independently. To get DS 10.0, you'll need to get vista. However, that's just a guess. I haven't received a comprehensible response from an MS person. There was some discussion of this here: ...Show All
Visual Basic System.Nullable Error
When I run an application from a PC with Visual basic 2005 installed all works fine, but when this is published to a PC without VB installed I get the following error System.MissingMethodException: Method not found: 'System.Nullable`1<!!0> System.Nullable.FromObject(System.Object)'. at The Data is selected by using a Stored procedure, and all the rights are correct. Any ideas what is wrong Many Thanks Allan Does the PC without VB installed have .NET 2.0 framework installed If it does have it, it's the RTM version or a Beta ...Show All
