本文介绍了在网格视图reg中显示报告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述



有人可以给我一些有关表演的提示吗?

1)月度报告:
必须从今天起自动获取当前月份,并在网格视图中显示结果

2)每周报告:
必须从今天开始减去今天的7天来计算当前星期,并在网格视图中显示结果


问题是,如果用户由于时间原因而在今天单击了den,那么我将对日期时间函数使用gettype(),结果尚未显示在网格视图中

等待您的回应,

在此先感谢




问候,
gowtham

Hi,

can any one give me some tips regarding showing

1)monthly report:
It is in which the current month must be taken automatically from the today date and show the result in grid view

2)weekly report:
It is in which the current week by subracting 7 days from today date must be taken automatically and show the result in grid view


the problem is i am using gettype() for datetime function if the user click today den due to the time in it the results not yet displaying in grid view

waiting for ur responces,

thanks in advance




regards,
gowtham

推荐答案

Dim date_From As DateTime = Now.AddDays((Now.Day - 1) * -1)

Dim date_To As New DateTime(Now.Year, Now.Month, 1)
date_To = date_To.AddMonths(1).AddDays(-1)



2)每周报告:



2)weekly report:

Dim date_From As DateTime = Date.Now.ToShortDateString()

        Dim date_To As DateTime = Date.Now.AddDays(7)


这篇关于在网格视图reg中显示报告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

08-22 22:41
查看更多