Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Using Visual Basic with Brio.Report

Status
Not open for further replies.

kamm

Programmer
Dec 4, 2000
17
GB
Does anyone know where I can see some examples of Visual Basic code which show how to set the limits in a report?
 
its not vb but this is how to do it using an eis which requires the user to logon with a name and password followed by the required dates for the limits.


with (ActiveDocument.Sections["eisLogon"])
{
if (Shapes["txtName"].Text=='')
{
Alert('Please Enter Your Iris Logon Name')
}
if (Shapes["txtPassword"].Text=='')
{
Alert('Please Enter Your Iris Password')
}
if (Shapes["txtFrom"].Text=='')
{
Alert('Please Enter a From Date')
}
}
if (Shapes["txtTo"].Text=='')
{
Alert('Please Enter a To Date')
}
if (PressCheck !='Yes')
{
Alert('Please press the Logon Button')
}
else
{
Sections["QryLate>£10,000"].Limits[2].SelectedValues.RemoveAll()
Sections["QryLate>£10,000"].Limits[2].Operator=bqLimitOperatorBetween
ActiveDocument.Sections["QryLate>£10,000"].Limits[2].SelectedValues.Add(txtFrom.Text)
ActiveDocument.Sections["QryLate>£10,000"].Limits[2].SelectedValues.Add(txtTo.Text)
}

the Limits[2] refers to the date choice being the second choice on the limits section.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top