Category Archives: Programming

Placeholders for SSRS Expressions

How could I have missed it?! Only recently did I discover the placeholder concept in  Microsoft SQL Server Reporting Services (SSRS).

In the report design interface, a text box containing an expression more complex than a single field reference (e.g. [FirstName]) or single field aggregate function call (e.g. [Count(Orders)]) is displayed as <<Expr>>. Continue reading

All Extensions Now Compatible with Mangeto 1.7!

We are pleased to announce that all of our extensions have been successfully tested with Magento 1.7!

New version of our Customizable PDF Invoice and Customizable PDF Packing Slip modules have been released containing Magento 1.7 compatibility updates.

SSRS – Updating Linked Report Page Properties

Page property changes made to Microsoft SQL Server Reporting Services (SSRS) reports are not passed on to linked reports. For example, changing a parent report’s page size from letter to legal will not change child linked reports’ page sizes to legal.

Sometimes, it’s desirable to synchronize child report page settings to their parents. Brian Welcker posted a code sample showing how to automate this property copying using the now old-style .Net 2.0 Web Reference approach. Let’s implement the same functionality using the modern (though, unfortunately, more verbose) Service Reference approach. Continue reading

Unit Testing & Magento’s Autoloader

, ,

If code written for Magento is executed outside of Magento—as occurs when running unit tests—Magento’s normal startup process (which registers its autoload functionality) is not run. Without the autoloader in place, the first time PHP encounters a request to initialize a class which it doesn’t recognize, it will error out with a “class not found” error. Also, without Magento’s startup process running, PHP doesn’t know about the Mage family of singleton methods (e.g. Mage::getModel(), Mage::helper()) which are commonly used to create class instances. Continue reading