Here is the code of the webservice - in case that all didn't make any sense!!
Code:
<WebMethod()> _
<ScriptMethod(ResponseFormat:=ResponseFormat.Json, UseHttpGet:=False)> _
Public Function ReportService(ByVal fromwho As String, ByVal selection As IList(Of String), ByVal username As String) As String
Dim strReportFolder = System.Web.Configuration.WebConfigurationManager.AppSettings("reportfolder")
Dim strBatFile = Path.Combine(strReportFolder, "Report.bat")
Using fileWrtr = New StreamWriter(strBatFile, False)
fileWrtr.WriteLine("set path=" & strReportFolder & "\")
fileWrtr.WriteLine("amc rpt/printers")
fileWrtr.Close()
End Using
Process.Start(strBatFile)
Dim JsonMaker As JsonWriter = New JsonWriter
With JsonMaker
.StartObject()
.NewObject("yo", "dawg...")
.EndObject()
End With
Return JsonMaker.GetJson()
End Function