数据集和HTML [英] Dataset and HTML

查看:74
本文介绍了数据集和HTML的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我正在编写一个程序,Datagrid绑定到数据集。

,用户允许过滤并执行条件搜索那个数据网格。


所以Datagrid可以随时显示任何类型的数据。(可以订购

信息,可以是客户信息或其他 - 取决于什么用户

想要的)


我担心的是,一旦用户看到Datagrid中的数据类型,他们就会想要
想要的导出并转换为HTML格式。并保存在计算机中以供参考。
参考目的。我应该怎么做?


i到目前为止我能够转换为Excel文本文件,但是有问题

HTML。


有人可以帮助我这个部分。


我想要的只是一个点击按钮。然后,Internet Explorer将弹出
,数据网格数据将显示在HTML格式文件中,即
Internet Explorer。然后用户可以选择保存或不保存文件。


非常感谢

问候


解决方案

DataGrid是一种HTML。交叉发帖是坏网友。


-

HTH,

Kevin Spencer

..Net开发商

微软MVP

大件东西组成

很多小东西。


A-PK" < PI ******** @ hotmail.com>在消息中写道

新闻:uG ************** @ TK2MSFTNGP10.phx.gbl ...

大家好,用户允许过滤并对该数据网格进行标准搜索。

所以Datagrid可能是随时显示任何类型的数据。(可以是订购信息,可以是客户信息或其他信息 - 取决于用户想要的)

我担心的是,一旦用户看到Datagrid中的数据类型,以及他们想要导出并转换为HTML格式的
。并保存在计算机中以供参考。我应该怎么做?

我能够转换为Excel,文本文件到目前为止,但是有HTML问题。

有人可以协助我就是那个部分。

我想要的只是一个点击按钮。然后会弹出Internet Explorer
,数据网格数据将显示在Internet Explorer的HTML格式文件中。然后用户可以选择保存或不保存文件。

非常感谢
问候



DataGrid是一种HTML。交叉发帖是坏网友。


-

HTH,

Kevin Spencer

..Net开发商

微软MVP

大件东西组成

很多小东西。


A-PK" < PI ******** @ hotmail.com>在消息中写道

新闻:uG ************** @ TK2MSFTNGP10.phx.gbl ...

大家好,用户允许过滤并对该数据网格进行标准搜索。

所以Datagrid可能是随时显示任何类型的数据。(可以是订购信息,可以是客户信息或其他信息 - 取决于用户想要的)

我担心的是,一旦用户看到Datagrid中的数据类型,以及他们想要导出并转换为HTML格式的
。并保存在计算机中以供参考。我应该怎么做?

我能够转换为Excel,文本文件到目前为止,但是有HTML问题。

有人可以协助我就是那个部分。

我想要的只是一个点击按钮。然后会弹出Internet Explorer
,数据网格数据将显示在Internet Explorer的HTML格式文件中。然后用户可以选择保存或不保存文件。

非常感谢
问候



您可以将数据网格封装在一个范围内,只需将范围内容

复制到新窗口即可。理想情况下,我建议将数据用

格式化,然后让样式表处理不同的数据

格式

HTH


A-PK写道:

大家好,

我正在编写一个用Datagrid绑定到数据集的程序。
用户允许过滤并对该数据网格进行标准搜索。

因此,Datagrid可以随时显示任何类型的数据。(可以是订购信息,可能是客户信息或其他 - 取决于用户想要什么)

我担心的是,一旦用户看到Datagrid中的数据类型,他们想要导出并转换为HTML格式。并保存在计算机中以供参考。我应该怎么做?

我能够转换为Excel,文本文件到目前为止,但是有HTML问题。

有人可以协助我就是那个部分。

我想要的只是一个点击按钮。然后将弹出Internet Explorer,并且数据网格数据将显示在Internet Explorer的HTML格式文件中。然后用户可以选择保存或不保存文件。

非常感谢
问候




-

问候,

Dilip Krishnan

MCAD,MCSD.net

dilipdotnet at apdiya dot com


Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they
want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will
pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards


解决方案

A DataGrid IS HTML. And cross-posting is bad Netiquette.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

" A-PK" <pi********@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...

Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards



A DataGrid IS HTML. And cross-posting is bad Netiquette.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

" A-PK" <pi********@hotmail.com> wrote in message
news:uG**************@TK2MSFTNGP10.phx.gbl...

Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards



You could encapsulate the datagrid in a span and just copy the contents
of the span to the new window. Ideally I''d recommend having the data in
an XML form and then have stylesheets work with the data in different
formats
HTH

A-PK wrote:

Hi All,

I am writing a program with Datagrid bind to the dataset.
and the user allow to filter and do a criteria search on that datagrid.

so the Datagrid could be display any type of data anytime.( could be order
information, could be customer information or others - depend of what user
want)

my concern is that once the user sees the type of data in Datagrid, and they
want to export out and convert to HTML format. and save in computer for
reference purpose. what should I do that ?

i am able to convert to Excel, text file so far, but having problem with
HTML.

Could someone able to assist me on that part.

what I want is just simply one click button. then the Internet Explorer will
pop up, and the datagrid data will be shown in a HTML format file in
Internet Explorer. then the user can choose to save or not save the file.

Thank you very much
Regards



--
Regards,
Dilip Krishnan
MCAD, MCSD.net
dilipdotnet at apdiya dot com


这篇关于数据集和HTML的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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