string inlineDocPreviewScript = Viewer.ClientCode()
.TargetElementSelector("#viewerd")
.Url(fileurl, fname)
.UseHtmlBasedEngine(false)
.UseInnerThumbnails(true)
.SupportTextSelection(true)
.ShowThumbnails(true)
.OpenThumbnails(false)
.ShowFolderBrowser(false)
.MinimumImageWidth(100)
.BackgroundColor("gray")
.ShowSearch(true)
.ShowPaging(true)
.ShowDownload(false)
.ShowViewerStyleControl(false)
.PreloadPagesCount(3)
.Zoom(100)
.ShowPrint(false)
.ToString();