Jon Prudhomme's Q&A profile
SQL Server Is it possible to create a fixed column report?
I was just wondering if it was possible to create a fixed column report that would export to a text file as dat file to be consumed by an outside process. By this I mean that my first column would be characters 1 to 8, column 2 would be 8 to 20, column 3 would be 21 to 40, etc... If so, how would you do it Thanks in advance. David, I had to do this for a report. I generated an XML file and applied an XSL translation to get it to fixed field ASCII. Not real difficult, but it required a second step. Don't forget to change the mime output type. I saw somewhere that you can specify the XSL file to apply after exporting to XML within Reporting Services,I just don't remember where. R ...Show All
Windows Forms A real challenge!
I have a real challenge. My software is basic a front-end for a database that I created in SQL 2005. That’s the challenge: I don’t want to use the "BindingNavigator", instead of this I want to put the code myself to go to next record, first, etc, in the new icons that I created. But this is not all. Here is the biggest difficult. I have "TabControls" too. So when I click, for examle, next record, the application need to show me the next record, not only in the form, but in the TabControl in the same form and at the same time Did I explained clearly Thanks for those how at least will read this. THANK YOU VERY MUCK OmegaMan! ...Show All
Visual Studio 2008 (Pre-release) Strings, Integers, and Colors in Resources?
Hi all, I'm trying to figure out the best way to store and reuse several settings that are integers, strings and Colors. For instance, I'd like a common margin of '7' to be defined that I can reference around all my controls for their Margin property instead of hardcoding it. I also would like to be able to name certain colors like MyControlGradientStart and be able to reuse that color value in various Color properties. What is the recommended pattern for doing this Is it to define the items in resources and then reference them with a {StaticResource} Or is there a better way Any help, especially with some code snippets, is much appreciated. You can import the System namespace into a XAML file if you need to have ints and str ...Show All
.NET Development Sending email via Lotus notes
Hi, I'm trying to send email via Lotus Notes. This worked before I updated visual studio from 2003 to 2005. Now I get the following error message: " Attempted to read or write protected memory. This is often an indication that the memory is corrupt ." I understand that the .net Framework 2.0 has much stricter rules concerning untrusted components and I think the error comes from that, but I have no idea how to give the component a trusted status. I have a reference to Interop.Domino. Below is my code: Dim domSession As New NotesSession Dim domNotesDBMailFile As NotesDatabase Dim domNotesDocumentMemo As NotesDocument Dim domNotesRichText As NotesRichTextItem Dim strAttachment As String Dim ...Show All
Visual Studio 2008 (Pre-release) [OperationContract] and properties,
Hi, Why is the below interface definition not possible Surely the fact that properties are just methods anyway mean that this should be possible. Why should it be necessary to change the perfectly reasonable Length property into a GetLength() method Is there any way to expose a property value /// <summary> /// Service contract definition. /// </summary> [ ServiceContract ] public interface IWorkContract { [OperationContract ] int Length { get ; } } How am I sharing a class I am not with you, my contract is an interface, and that interface requires a property in the implementation, the property is remoted. I cannot recall if this ...Show All
SQL Server How to find Carriage Return CHAR(13)?
I've been looking for this online and on MSDN but no luck. I simply want to find all my CR in specific columns and later Replace them with a string (ie. --THIS-IS-A-CR--). The problem is I cannot even find/search CHAR(13) by using variations of the query below. SELECT * FROM Incident WHERE (description LIKE '%CHAR(13)%') --I know this is incorrect try this SELECT * FROM Incident WHERE ( description LIKE '%' + char ( 13 )+ '%' ) ...Show All
Visual Studio 2008 (Pre-release) Simulating no-textwrap in RichTextBox
Hi there, I read somewhere that the RichTextBox control doesn't have a property to turn TextWrapping on or off like TextBox, and that the only way to simulate TextWrapping turned off is to set the FlowDocument within the RichTextBox to a width that would accommodate the longest text line. Just wondering if there's an easy/elegant way to get the longest text line within the FlowDocument such that I can just bind that to the FlowDocument Width and thus simulate the no-textwrapping behavior. As background, I'm planning to use the RichTextBox as an Xml editor with syntax coloring, so I need the text content not to wrap. Thanks!!! Regards, Tenny Yes sorry...you're right, I will be binding the Pa ...Show All
Visual Basic Icons in custom-made dialog boxes
I have just created a custom-made dialog box using the Add Windows Form command under the Project menu of Visual Studio 2005. Now I've run into a bit of a problem: Remember those icons (information, question, warning, error) in those dialog boxes you're always seeing I want to know how I can implement those in my custom-made dialog box I would appreciate a response as soon as possible. Thank you. Hi, Just load your pictures in the imagelist control and change the name of your pictures ("warning", exclamation", etc...) Then you can load your image in a picturebox this way: pictureBox1.Image = imageList1.Images("warning") cheers, Paul June A. Domag ...Show All
Community Chat Creating A new OS
Hello, I just wanted to make a question What knowledge would it take to make A operating system if you could tell me Cause I am starting to get into building program it may take A long time but dont worry one day your data will be safer then ever I am hoping to do a couple of things in here against bug/virus Encryption and hard ways to get past stuff... If someone would be willing to help me out... Danka sir! ok furby listen to make ur own os u need to create kernel read about kernel programming and better solution to start os programming is to start by c/c++ and assembly i m giving u link of very small OS code here u can get code of small os which hopefully be useful for u. Easy OS programming tutorial with OS code....... ...Show All
Software Development for Windows Vista Aero interface is not loading
Hi, I installed Vista RC1 ultimate edition on a IBM T41 and the Aero interface is not loading and i do not see a option to enable this interface. Can someone walk me on how to enable this interface. One of the reasons for installing this Os was to experience the interface. Chetan You wont be able to. Unless you've upgraded your laptop (I have the same one) Aero needs a video card with at least 128 MB of VRAM to run. Marc ...Show All
.NET Development Delayed send with smtpclient in .net 2.0
Is there any way to force the smtpclient to send mail immediately with the .send method in system.net.mail 2.0 Right now it takes anywhere from 90 secods to two minutes before the mail is actually sent once the .send method executes. I've tried setting the object to nothing immediately after the .send method call, but no luck. The real issue for me is the send delay is also causing the smtpclient to hold a lock on attached files that are being sent for that same 90 seconds to two minutes. I need to move the file immediately after emailing it, and right I get an exception telling me two processes can't access the file at the same time - obviously the smtpclient holding onto the file until it's ready to sent it. BTW, this app was usi ...Show All
Visual Studio Express Editions custom right mouse button menu
Hello, I would like to create custom menus for users when they right mouse click on my app. Is there a way to do this Thanks, Jeff A good way to find out what kind of code you need to create a custom context menu is to drop a ContextMenuStrip control on your form and add some entries. Then look at the code that the designer generated; click the "Show All Files" icon in the Solution Explorer, open the Form1 node and double-click Form1.Designer.vb. Just duplicate code like that for your own use and you'll be set... ...Show All
Visual Studio 2008 (Pre-release) Appaling GUI performance on Vista RC2
Hey guys, I don't know if this already been reported, but I've discovered that the GUI performance drops drastically on Vista RC2 when setting the AllowsTransparency="true" on a Window. On Win XP with September CTP bits it runs fine. It is a pretty clean test from a hardware point of view since I have a dual boot laptop. Here's my system info: OS Name MicrosoftR Windows Vista Ultimate Version 6.0.5744 Build 5744 Processor Genuine Intel(R) CPU T2500 @ 2.00GHz, 2000 Mhz, 2 Core(s), 2 Logical Processor(s) Hardware Abstraction Layer Version = "6.0.5744.16384" Total Physical Memory 2,045.88 MB Available Physical Memory 883.25 MB Total Virtual Memory 4.22 GB Available Virtual Memory 2.64 GB ...Show All
Visual Studio 2008 (Pre-release) Create a round TextBox I can edit
I need to create a round texbox I can edit. I created a resource dictionary with a stile in it like this: < Style x:Key = " RoundTextBoxStyle " TargetType = " {x:Type TextBox} " > < Setter Property = " Template " > < Setter.Value > < ControlTemplate TargetType = " {x:Type TextBox} " > < Ellipse Width = " 30 " Height = " 30 " Stroke = " DarkSlateGray " StrokeThickness = " 0.5 " > < Ellipse.Fill > < SolidColorBrush Color = " DarkBlue " Opacity = " 0.2 " ></ SolidColorBrush > </ Ellipse.Fill > < Ellipse.BitmapEffect > < DropShadowBitmapE ...Show All
.NET Development Accessing XML file from a folder
hi i am developing a c# window application which is using xml for storing Data. i have added a folder called Data to the project which contains these files. I am unable to get the equivalent of "app.path" that we used in VB6.0 to get the exact path of the application. To access these folders i am using ds.readXml("..\\..\\Data\\user.xml"); this code is working fine in both debug and release mode but when i am deploying my application it is not finding the data folder. Please suggest. with Thanx Daman In .NET 2.0 the equivalent of App.Path is My.Application.Info.DirectoryPath . For .NET 1.1 use Application.StartupPath as Kareem suggested. ...Show All
