The "Eureka!," "How could I be so stupid!," and "Head-to-Wall-Banging" aspects of Programming and Life, served with a side order of humor and alternate perspective.
Wha' Happen'd?
Get link
Facebook
X
Pinterest
Email
Other Apps
Sorry for the delay in blog entries - the lines for the bathroom at my house are way long. ;-)
Seriously, I've been away a while, but I'm going to throw myself into blogging. I encourage you to stay tuned!
I am working on a SQL Server Reporting Services 2008 project. I decided to write a tool in C# that will document the reports that I have created. What should make this easy is that the structure of the RDL (report) file is XML, which makes it a perfect candidate for using LINQ to XML to dig through its information. Here’s the top of the RDL file I’m trying to process (C:\MyReport.RDL): <? xml version="1.0" encoding="utf-8" ?> < Report xmlns : rd = "http://schemas.microsoft.com/SQLServer/reporting/reportdesigner" xmlns = "http://schemas.microsoft.com/sqlserver/reporting/2008/01/reportdefinition" > < DataSources > < DataSource Name = "SalesDM" > < DataSourceReference > SalesDM </ DataSourceReference > < rd : DataSourceID > 60c7781c-ab9c-4c5f-b779-24afa5d5bac3 </ rd : DataSourceID > < rd : SecurityType > None </ rd : SecurityType > </ Data...
I've been re-learning PowerShell lately. String Delimiters There are two string delimiters available for building strings in PowerShell: apostrophe (') and double quote ("): Write-Host 'Hello World' Write-Host "Hello World" Both of these PowerShell commands send the string Hello World to the console. I fell into the habit of using the apostrophe in my PowerShell scripts, and found that I missed string interpolation that I use so often in C# and PHP. Consider the following example: $name='Rick' $distanceInMiles=10 $greeting = 'Hello, my name is '+$name+' and I work '+$distanceInMiles+' miles from home.' Write-Host $greeting When this script is executed, the following is written to the console: Hello, my name is Rick and I work 10 miles from home. String Interpolation String interpolation lets you embed expressions into a string when defining the string. The expressions are evaluated when...
I love creating tools that simplify a developers life and can save time. My intent with the next few blog entries will be to publicly step through the process of designing, creating, and using tools that I have named the "Fast and Filthy Add Ins for Visual Studio." "Fast and Filthy" is a play on the term "Quick and Dirty." These add ins will be Visual Studio add ins that will give a developer a fast and simple way to create prototypes for customers/management. I think this also has the potential for use by managers and even clients (more on this later). Taking Advantage of the Hierarchical Classes, controls, and data tend to be hierarchical in nature. Classes have properties and methods (which have parameters and a return value ). Controls contain collections of controls. Data tends to be hierarchical to some degree - Databases contains tables which can be related to other tables, tables contain fields, etc.. And then of course there's XML: hierarch...
Comments
Looking forward to what you put here.
C. T. Blankenship
I look forward to your feedback!
Rick