how to write next day's date(one after current date) in page header of a VB Report
Show tomorrow's date in header of Vb Report
Collapse
X
-
Tags: None
-
Show tomorrow's date in header of Vb Report
how i can write tomarrow' date( 1 day after current date) in Page header of VB report.any clue please -
-
hi
dataReport1.sec tions("SecName" ).controls("Lab elName").Captio n=Date+1
regards
manpreet singh dhillon hoshiarpurComment
-
Originally posted by manjeetgranghow i can write tomarrow' date( 1 day after current date) in Page header of VB report.any clue pleaseComment
-
vb.net:
[code=vbnet]
Dim date1 As Date
date1 = System.DateTime .Today
date1 = date1.AddDays(1 )
[/code]Comment
-
Originally posted by 9815402440hi
dataReport1.sec tions("SecName" ).controls("Lab elName").Captio n=Date+1
regards
manpreet singh dhillon hoshiarpur
In report's Pageheader section you can't access any control on runtime/design (any event). Thanks for your helpComment
-
Hi,
You have to do it at Run-Time..
Place a Label Control on the Report-Header Section and Rename it as MyLabel....
and use Manpreet's code just before showing the Report..
[code=vb]
DataReport1.Sec tions(1).contro ls("MyLabel").C aption=Format(( Date+1),"dd-mm-yyyy")
[/code]
Regards
VeenaComment
Comment