Visual Basic Programming
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
 
 
User Name:
Password:
Remember me
Go Back   ASP Free ForumsProgrammingVisual Basic Programming

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread ASP Free Forums Sponsor:
Ajax Application Generator Generate database and reporting .NET Web apps in minutes. Quickly create visually stunning, feature-rich apps that are easy to customize and ready to deploy. Download Now!
  #1  
Old November 29th, 2004, 12:38 AM
roughneck82 roughneck82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Tejas
Posts: 63 roughneck82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 32 m 5 sec
Reputation Power: 4
CheckBox help

I use a script that was made at work to make a printout of reports everynight. The following code pops up a message box to ask for the date and then prints out the information I need via the numbers in the list array

I want a message box to pop up asking for the day and a check box for each "list" in the array

that way I can choose what I want to print.
How can I do this?

Code:
'LANGUAGE=ENU
'SERVERNAME=10.186.76.20
Public Sub Main()
   On Error Resume Next

thedate = InputBox("Date for Reports:","Date","")
 
   cvsSrv.Reports.ACD = 1
Set Info = cvsSrv.Reports.Reports("Historical\CMS custom\NonBillable Rpt")
   If Info Is Nothing Then
   If cvsSrv.Interactive Then
	MsgBox "The report Historical\CMS custom\NonBillable Rpt was not found on ACD 1.", vbCritical Or vbOKOnly, "Avaya CMS Supervisor"
   Else
	   Set Log = CreateObject("AVSERR.cvsLog") 
	Log.AutoLogWrite "The report Historical\CMS custom\NonBillable Rpt was not found on ACD 1."
	Set Log = Nothing
   End If
   Else
	b = cvsSrv.Reports.CreateReport(Info,Rep)
	If b Then
 
	   Rep.Window.Top = 4785
	   Rep.Window.Left = 5325
	   Rep.Window.Width = 8595
	   Rep.Window.Height = 5820		
 
 
	   Rep.SetProperty "Skills","500"
 
	   Rep.SetProperty "Dates",thedate
 
	   Rep.SetProperty "Times","0-23:59"
 
 
 
	   b = Rep.PrintReport
 
 
	   Rep.Quit
 
			  If Not cvsSrv.Interactive Then cvsSrv.ActiveTasks.Remove Rep.TaskID
	   Set Rep = Nothing
	End If
   End If
   Set Info = Nothing

dim list()
redim list(7)
list(0) = "41;47;48;49;51;52"
list(1) = "800;18"
list(2) = "13;24;30;35;36;37;43"
list(3) = "60;61"
list(4) = "60"
list(5) = "61"
list(6) = "2;3;4;6;16;17;19;20"
list(7) = "2;3;4;6;16;17;19;20;13;24;30;35;36;37;43"
 
For i = 0 to ubound(list)

   Set Info = cvsSrv.Reports.Reports("Historical\CMS custom\OCC By Top Skill")
 b = cvsSrv.Reports.CreateReport(Info,Rep)
	If b Then
 
	   Rep.Window.Top = 2872
	   Rep.Window.Left = 3405
	   Rep.Window.Width = 8550
	   Rep.Window.Height = 5775		
 

 
	   Rep.SetProperty "Split/Skill",list(i)
	   Rep.SetProperty "Date(s)",thedate
	   Rep.SetProperty "Interval(s)","0-23:59"
 
 
	   b = Rep.PrintReport
 
 
	   Rep.Quit
 
			  If Not cvsSrv.Interactive Then cvsSrv.ActiveTasks.Remove Rep.TaskID
	   Set Rep = Nothing
	End If
   Set Info = Nothing
next
End Sub  

Reply With Quote
  #2  
Old November 29th, 2004, 07:27 AM
dev77's Avatar
dev77 dev77 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Nov 2004
Location: On d Earth ofcourse..!!
Posts: 439 dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level)dev77 User rank is Major (30000 - 40000 Reputation Level) 
Time spent in forums: 4 Days 15 h 59 m 40 sec
Reputation Power: 309
use form

Hi,
Use a form to do that in place of input box.
Use a for loop to go thru list array. and put a check box for each.
and then depending upon selection, on click of ok button, print ur reports. It's that easy.

Reply With Quote
  #3  
Old November 29th, 2004, 11:51 AM
roughneck82 roughneck82 is offline
Contributing User
ASP Free Newbie (0 - 499 posts)
 
Join Date: Oct 2004
Location: Tejas
Posts: 63 roughneck82 User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 6 h 32 m 5 sec
Reputation Power: 4
How do i get the msg box that pops up to have the check boxes on it for each list

Reply With Quote
Reply

Viewing: ASP Free ForumsProgrammingVisual Basic Programming > CheckBox help


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 2 hosted by Hostway