导出HTML内容以打开办公室应用程序时出现问题。(Problem when export an HTML content to open office application.)

   IT问题网   2021-02-19 00:00:00

问 题

大家好。



当我尝试将html内容导出到开放式办公应用程序时,我遇到了问题。

i我正在使用asp.net和c#。

我有一个数据表,其中一个列是"平均小时数"。

它保持的值为" 08:50"作为字符串类型。

这意味着员工的平均小时数为08小时50分钟。

当html导出到开放式办公应用程序时,

它显示为08:50:00 am。

我认为开放式办公室的默认时间格式设置为hh:mm:ss am / pm。

当我在开放式办公室中将格式更改为仅hh:mm时,列中的值显示正确。

但在microsoft office(excel)应用程序中,它没问题。



假设我的html内容如下 -



 lt;  表格 gt;  
lt; tr gt;
lt; td gt; 08:50
lt; / td gt ;
lt; / tr gt;
lt; / table gt;






有没有办法通过我解决这个问题在开放式办公室中每次都不改变格式的代码。在c#中。

请帮帮我。

非常感谢。

解决方案

你可以试试html report engine在codeprojecthtml报告引擎 [ ^ ]

标签:导出内容打开办公室应用程序出现呈现涌现泛起问题



分享:

  • 微信
  • QQ好友
  • QQ空间
  • 新浪微博


热门推荐

将数据从CSV导入Oracle(Importing Data from CSV to Oracle)

problem hi i want to import the data from csv to oracle, ...

如何使用存储过程传递id(how to pass id for where using stored procedure)

problem how to pass id for where condition when using mys ...

使用cookie值加载gridview(Load gridview using a cookie value)

problem i have a method to load a gridview according to a ...

只有添加足够的行才能启用垂直滚动条,才会显示ClistBox(ClistBox doesn't display until enough lines are added to enable the vertical scroll bar)

problem i have an application that adds lines to a list b ...

DateTime数据类型的算术运算。(Arithmetic Operations on DateTime Datatype.)

problem hi, i have been trying to find a way to do arit ...

将图像插入Word(Insert Image to Word)

problem how to compress inserted image in word using dsof ...

我如何缩进给定的XML(how can i indent a given XML)

problem is there any easiest way to indent given xml i ...

我想将Outlook消息保存到sql server db(i want to save outlook messages to sql server db)

problem hi could you please help me on saving outlook m ...

我如何在cookie中保存令牌(how I can save the token in the cookie)

problem hi, i am creating the web service au ...

C#.net中的ModalPopupExtender(ModalPopupExtender in C#.net)

problem while i am clicking the modal popup extender wind ...

需要帮助来更改密码表格(need help to change password form)

problem hi everyone, i am still newbie in vb. ...

CMap或CMapPtrToPtr(CMap or CMapPtrToPtr)

problem hi, i want store the objects in cmap ...

如何创建新的任务栏(how to create new task bar)

problem hi, i want to create new taskbar,can any one hel ...

在C#.net中旋转PDF文件(Rotate PDF File in C#.net)

problem hi , how to rotate pdf file in c#.net ...

在C#.Net中旋转图像文件(Rotate Image Files in C#.Net)

problem hi, how to rotate image files(jpeg,ti ...

如何交换字符串中的字符(how to swap characters in a string)

problem hi all. i''m new in .net and i want t ...

如何在SHAREPOINT 2010中集成twitter(How to integrate twitter in SHAREPOINT 2010)

problem hi to all, this is siddiqali working ...

检查应用程序是否正在运行(Check If Application Is Running)

problem is there a way to run a loop that wou ...

如何使用radiobuttonlist?(how to use radiobuttonlist)

problem i want to write select query for selectedindexcha ...

如何计算日期差异和数字差异(How to Calculate Date Diff And Num Diff)

problem glnotranscationdate deposit withdraw transid loan ...