Tag: 预览

我怎样才能得到一个Excel文档的预览图像?

我有一个Excel文档,我需要把第一张图片的图像,并使用它放入JLabel的图标。 我该怎么做?

.NET – 预览Excel文件(XP)

除了WebBrowser控件,还有什么方法可以预览XP上的Excel文件吗? WebBrowser如何预览它们?

在Web浏览器中预览Excel,Word,PDF

除了Google文档,是否有任何技术可以让我从浏览器中预览Excel,Word,PDF,而不必下载和安装任何新的东西(当然,我认为他们至less有那些在他们的计算机上运行的porgrams)

上传前预览xls,xlsx,doc等文件的缩略图

我很难搞清楚如何在上传文件之前预览文件缩略图。 所以当我使用文件select器浏览文件,并select我想要上传的文件时,将显示其相应的预览,如.txt,.csv,.xls或xlsx等。有没有办法以任何方式实现这一点? 简单的方法或复杂的方法可能工作。 我如何获得这样的东西? html文件 <form id="form1" runat="server"> <input type='file' id="imgInp" /> <img id="blah" src="#" alt="your image" /> </form> 这里的JS function readURL(input) { if (input.files && input.files[0]) { var reader = new FileReader(); reader.onload = function (e) { $('#blah').attr('src', e.target.result); } reader.readAsDataURL(input.files[0]); } } $("#imgInp").change(function(){ readURL(this); });

UIDocumentInteractionController“无效的scheme(null)”

我正在尝试使用UIDocumentInteractionController预览文档。 该文件是我的应用程序从网上下载的.xls文件。 我不断收到这个错误: 'UIDocumentInteractionController: invalid scheme (null). Only the file scheme is supported.' 我使用下面的代码: – (void) webServiceController:(WebServiceController *)webServiceController returnedArray:(NSMutableArray *)array { if ([webServiceController.webRequest isEqualToString: @"generateExcelFileForEmployee"]) { // start previewing the document at the current section index NSString *link = [[NSString stringWithString:array[0]] stringByReplacingOccurrencesOfString:@"AdminFunctions.php" withString:@"AdminFunctions.xls"]; link = [[[link stringByReplacingOccurrencesOfString:@"\\" withString:@""]stringByReplacingOccurrencesOfString:@"/public/sites/" withString:@"http://"]stringByReplacingOccurrencesOfString:@"\"\\\"" withString:@""]; NSLog(@"%@", link); NSData *urlData = […]