Home > Net >  C # word copy and paste error: the clipboard is empty or invalid
C # word copy and paste error: the clipboard is empty or invalid

Time:11-10

copy to the word, excel charts vs operating normally, published to the iis error:

Using Word=. Microsoft Office. Interop. Word;
Using Excel.=the Microsoft Office. Interop. Excel;//operation excel





solve!!!!!!

CodePudding user response:

May be the clipboard is not available in the web application (based on security),

CodePudding user response:

No master to answer???

CodePudding user response:

Web application is different from a desktop application, a web request big probability for the web server is anonymous, based on safety considerations, the anonymous user in the operation of the server restrictions (read and write files, access to the registry, access to the clipboard, etc.), if the permissions open is too big, a hacker can easily through the browser in black into the system, the most obvious security restrictions is: you can't automatically by the js script to write files on your hard drive,
  •  Tags:  
  • C#
  • Related