Code: Select all
Dim nStartIndex = strImagePath.LastIndexOf("\") + 1
Dim strSourceFile = strImagePath.Remove(0, nStartIndex)
Dim strNconvertProgram As String = "C:\Program Files\XnView\nconvert.exe"
Dim StrNConvertArguments As String = String.Format("-c fax -multi -out pdf -o %.pdf - overwrite -quiet {0}", strImagePath)
Dim myProcess As Process = Process.Start(strNconvertProgram, StrNConvertArguments)
Dim strOutputFile As String = strSourceFile.Replace("tif", "pdf")
myProcess.WaitForExit()
myProcess.Close()
Response.Redirect(String.Format("http://inquiry.clayclerk.com/DocTemp/{0}", strOutputFile, False))
Any thoughts on the correct way to do this?
Thanks
Ken Ray
IT Solutions Architect
Clay County Clerk of the Circuit Court