c# - Google docs embedded document not showing until resize? -


i have problem in sometimes (not clear when exactly), displaying embedded document docs.google.com not show document until resize browser window.

grab popcorn, here's movie shows problem:

enter image description here

here's code:

html:

<iframe runat="server" id="frame" style="width:100%;height:600px;border:0;"></iframe> 

c# code begind (in page_load method):

frame.attributes["src"] = "https://docs.google.com/gview?url=https://example.com/1.doc&embedded=true"; 

i tried reproducing browsing directly https://docs.google.com/gview?url=https://example.com/1.doc&embedded=true never happens way.

note: document never displayd @ all, if never loaded, , iframe remains totaly blank.

any ideas how fix this?

you try setup default document size. print envelopes google docs

 var envelope10={};   envelope10[documentapp.attribute.page_height]=296;   envelope10[documentapp.attribute.page_width]=684;   envelope10[documentapp.attribute.font_family] = 'calibri';   envelope10[documentapp.attribute.font_size] = 18;   envelope10[documentapp.attribute.bold] = true;   envelope10[documentapp.attribute.line_spacing]=1; 

Comments

Popular posts from this blog

ZeroMQ on Windows, with Qt Creator -

unity3d - Unity SceneManager.LoadScene quits application -

python - Error while using APScheduler: 'NoneType' object has no attribute 'now' -