Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Google doc no preview available error

I used the google doc to display the pdf file in web broswer. It was working fine before. Now it gives no preview available. Most of the time it gives the blank screen with no preview available but sometime it opens the pdf. However i noticed that if the size of the pdf is small, it works fine but if the size is a bit larger with 10-100 or more pages, the no preview is shown.

link:

https://docs.google.com/gview?embedded=true&url=http://trafficpolice.gov.np/traffic/uploadfiles/56a0e8156d4ea.pdf

code:

WebBrowser view = new WebBrowser();
view.setURL("https://docs.google.com/gview?embedded=true&url=http://trafficpolice.gov.np/traffic/uploadfiles/56a0e8156d4ea.pdf");
like image 750
beck Avatar asked May 01 '16 05:05

beck


People also ask

What does no preview available mean?

Description. When a user receives an email containing an Untrusted image attachment and selects "Preview File", a window appears stating "No Preview Available". This is expected behavior, to ensure that execution of image files by Microsoft Outlook cannot compromise the device.

How do I enable preview in Google Drive?

To open the file preview in the current tab: double-click a file in Google Drive (non-Google files only) select a file in Google Drive and press the Preview button in the toolbar. select a file in Google Drive and press p on your keyboard.

What does it mean Unable to preview file?

If you cannot preview files in Google Drive, you may be trying to open an incompatible file format. 1. Right-clicking on the incompatible file in Google Drive and selecting the "Open with" option. Then choose to open it using a table, document, or slide.

Why can't I preview files in Gmail?

The document is not a valid attachment – Google Drive or Gmail might refuse to preview the document because it doesn't consider it a valid attachment. If the attachment is not considered secure, Google will not make it available for preview.


1 Answers

I've just tried to encode the & character to %26 and worked fine for my case.

like image 67
Gustavo Ferreira Avatar answered Sep 20 '22 13:09

Gustavo Ferreira