Asp.Net导出到Excel错误:加载期间出现问题,缺少.css文件 [英] Asp.Net export to Excel error : Problems During Load, Missing .css files

查看:99
本文介绍了Asp.Net导出到Excel错误:加载期间出现问题,缺少.css文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我从asp.net网站使用Microsoft ReportViewer将数据导出到excel.当我打开excel时,出现以下错误

From my asp.net website, I export data into excel using Microsoft ReportViewer. When I open the excel I get the following error

当我导出几行数据时,它可以正常工作.但是,当我导出一些巨大的数据时,它将引发此错误.有人可以帮忙吗?

When I export few rows of data, it works fine. But when I export some what huge data, it throws this error. Can some one provide some help?

推荐答案

您要导出的数据引用了Web服务器上的CSS文件.

The data you are exporting is referencing css files on the webserver.

一旦下载了文件,就下载了这些引用.

once you are downloading the file, you are downloading those references.

当您打开文件时,它正在尝试在本地打开css文件,但是它们在本地不存在.

When you open the file, it's trying to open the css file's locally, but they do not exist locally.

我要么单独下载css文件,然后将它们放置在它们应该存在的本地位置,要么阻止您的导出在具有引用的任何行中引用这些文件.(可能在顶部附近)

I would either download the css files separately, and place them in the local location they should exist in, or prevent your export from referencing the files in whichever line has the references. (probably near the top)

这篇关于Asp.Net导出到Excel错误:加载期间出现问题,缺少.css文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆