Instructions are below and I have attached the module. It is written in VB.NET, but you could always modify it if you are using a different language. If you find this useful let me know!

Thanks
Scott
Description
***********
Checks for a test in QC with same name under specified folder. If the test does not exist
then a placeholder is created. An instance of the test is then checked in the specified testset
within TestLab. If an instance does not exist, one is created. A run is then added with the latest
result and a Ranorex Test Log is uploaded and attached to the run.
Usage
*****
1)Add OTA reference to your project
2)Add the QCbridge module to your project.
3)Add the below to the main program
QCbridge.url = "http://??.??.??.??/qcbin"
QCbridge.user = "??"
QCbridge.pass = "??"
QCbridge.domain = "??"
QCbridge.project = "??"
4)Add the line of code below at the start of each test.[TRUE or FALSE to log to console)
QCbridge.startTest(System.Reflection.MethodBase.GetCurrentMethod().Name,False)
5)Add the line of code below at the end of each test.
QCbridge.stopTest("QCTESTPLANFOLDERNAME","QCTESTSETNAME","Passed")
6)Add the line of code below to the exception catch in the main program.
QCbridge.stopTest("QCTESTPLANFOLDERNAME","QCTESTSETNAME","Failed")
NOTE: The folder and testset must exist in QC.