I need to create a common component in mvc 4 which includes a C# function that takes HTML string as input and creates a pdf file. Then this pdf is printed using vbscript. I need to call the vbscript print function on calling C# create pdf function. This function will be consumed in MVC. I need to know how can i combine c# code and vbscript code into a single reusable component.