<< Previous 5    Next 5 >>
<:::  28-Jan-2010
    <CF>      :::>
ActivePDF and Coldfusion

I had time to try ActivePDF's ToolKit dll file with CF8 and here is how i got it working:

<cfset font = "Arial">
<cfset text = "Text From CFM CODE alsjflkdsfajlkjfd">

<cfscript>
TK = createObject("COM","APToolkit.Object",expandPath('APToolkitNET.dll'));
name = expandPath(TK.getUniqueFileName());
TK.outputPageHeight = 546;
TK.outputPageWidth = 546;
TK.OpenOutputFile(name);
TK.PrintMultilineText(font,16,200,72,400,400,text,'0');
TK.PrintTiff(expandPath("image.tif"),72,72,72,72,'true');
TK.CloseOutputFile();
ReleaseComObject(TK);
</cfscript>

This code creates a unique file that is 546 points square. Then places some text on the PDF and Image on the PDF at the X-Y coordinates that i specify. X and Y are determined from the bottom left of the PDF.

I cant seem to get it working with a createObject() using .net though. Not sure why.



<:::  28-Jan-2009
    <CF>      :::>
SQL - how to left join on two unioned tables

I wanted to union two tables together then do a left join onto another table. Here is what worked for me.


SELECT unionedTables.*, Users.UserName
FROM
(
SELECT IndividualCurrentFiles.*
FROM IndividualCurrentFiles
WHERE StatusWhen = '1/9/2009'

UNION ALL

SELECT VariationCurrentFiles.*
FROM VariationCurrentFiles
WHERE StatusWhen = '1/9/2009'
)

AS unionedTables

LEFT JOIN Users ON unionedTables.ApproveUserID = Users.UserID
ORDER BY JobNum, FileName Asc



<:::  15-Oct-2006
    Audio      :::>
Parents Home Theater System

Next up is my parents home theater speakers.

Mom and Dad purchased a 60" Sony Grand Wega T.V. It is HUGE! So i had to build speakers for them for the true surround sound experience.

This project is going to be interesting. They first wanted small speakers. Like BO$E size speakers. I briefly toyed with the idea of using a small 3" speaker much like the olives, but i quickly came to the conclusion that 3 and 4 inch drivers just cannot deliver the home theater level of sound. AKA SPL!

After looking at my parents home installation i suggested that we do a floor standing speakers for the front and surround. Then use a small speaker for the center channel.

Stay tuned!



<:::  15-Oct-2006
    Misc.      :::>
Center Island

I am way behind on blogs so tonight i will update the home page.

First up is my center island.

I started this project in August then my appendix decided to leave me and after surgery I am back working on it. Nothing has changed on the center island as of this post. I have the major frame together. Now i need to make 4 drawer boxes, make a top and figure out the wheels that will go underneath it. I purchased all of the hardware so now it is up to woodworking.



<:::  20-Dec-2005
    Audio      :::>
How to create your mic calibration file in Soundeasy

I made a new how to on creating the microphone calibration file that you need for doing SPL measurments.

Web Version

Downloadable Version



<< Previous 5    Next 5 >>


All designs and original content posted on these pages are Copyright © 2006 Chad Gray, All Rights Reserved. No part of this website may be reproduced in any form without written or email consent from the author. These designs are free for non-commercial use.