How do you print from Method Directive?

The function stuff I recently covered here:

If that is too messy, let me know. (it was part of a larger conversation)

As far as the method directive, you would just write a little glue code to call the function you made.

Something like

if(sometrigger)
{
    InvokeFunction(Library, Function, ReportName, ReportStyle, "SSRSPREVIEW"); // etc
}

If you need a complete example, I could probably be convinced to work one up, but you must be amusing.