Click here to Skip to main content
15,923,051 members
Home / Discussions / Visual Basic
   

Visual Basic

 
QuestionCoding nested Conditional Statements Pin
IvanIT1-Mar-08 15:59
IvanIT1-Mar-08 15:59 
GeneralRe: Coding nested Conditional Statements Pin
Dave Kreskowiak3-Mar-08 3:56
mveDave Kreskowiak3-Mar-08 3:56 
GeneralCombobox control Pin
manisghouri1-Mar-08 13:03
manisghouri1-Mar-08 13:03 
GeneralRe: Combobox control Pin
Christian Graus1-Mar-08 13:42
protectorChristian Graus1-Mar-08 13:42 
Questionproblem during report genration Pin
yogesh_kumar_agarwal1-Mar-08 0:57
yogesh_kumar_agarwal1-Mar-08 0:57 
GeneralPrinting support on hp laserjet 1010 in vb6 Pin
r_mohd29-Feb-08 23:52
r_mohd29-Feb-08 23:52 
GeneralRe: Printing support on hp laserjet 1010 in vb6 Pin
yogesh_kumar_agarwal29-Feb-08 23:57
yogesh_kumar_agarwal29-Feb-08 23:57 
GeneralRe: Printing support on hp laserjet 1010 in vb6 Pin
r_mohd1-Mar-08 18:38
r_mohd1-Mar-08 18:38 
thanks, find the coding which i used to take printout

Private Sub DataRptRecord()
'On Error Resume Next
Dim Var1, Var2 As String
If A_DataEnvironment.rsCmdPrnt.State Then A_DataEnvironment.rsCmdPrnt.Close
A_DataEnvironment.rsCmdPrnt.Open ("SELECT *From adrsmstr",conn)
DataRptAddress.Sections(2).Controls("lbl1").Caption = Trim(TxtCntact1.Text) ' AdrsBook_DataEnvironment.rsCmdAdrsPrnt.Fields(1)
DataRptAddress.Show

' the following section of codes deals with only dos base printings.

Private Sub DosBasePrinting()
On Error Resume Next
Dim A1, A2, A3, A4, A5, A6, A7 As String
Dim z As Integer
Dim i As Integer


If MarkAtt = True Then
Call AskForSave
If a.State Then a.Close
a.Open ("SELECT * From adrsmstr"), Conn, adOpenStatic, adLockBatchOptimistic




If a.EOF = False Then
a.MoveFirst
z = PrntNos
Open App.Path & "\A.TXT" For Output As #1
A1 = a.Fields(1)
A2 = a.Fields(0)
A3 = a.Fields(2)
A4 = a.Fields(3)
A5 = a.Fields(4)
A6 = a.Fields(6)
A7 = a.Fields(5)

For i = 1 To z
Print #1, " " & Trim(TxtCntact.Caption)
Print #1, " " & A2
Print #1, " " & UCase(Trim(A3)) & "," & UCase(Trim(A4))
Print #1, " " & A5
Print #1, " " & A6
Print #1, " " & A7
Print #1, " "
Print #1, " "
Print #1, " "
Next
Close #1
End If
X = Shell(App.Path & "\print.bat", vbHide)

rmshah
Developer

GeneralTable in richtextbox Pin
helelark12329-Feb-08 23:23
helelark12329-Feb-08 23:23 
GeneralRe: Table in richtextbox Pin
Xmen Real 1-Mar-08 2:37
professional Xmen Real 1-Mar-08 2:37 
Questionhow can i handle a datagridview in vb.net Pin
r_mohd29-Feb-08 21:09
r_mohd29-Feb-08 21:09 
AnswerRe: how can i handle a datagridview in vb.net Pin
Christian Graus29-Feb-08 21:45
protectorChristian Graus29-Feb-08 21:45 
AnswerRe: how can i handle a datagridview in vb.net Pin
yogesh_kumar_agarwal29-Feb-08 21:49
yogesh_kumar_agarwal29-Feb-08 21:49 
GeneralRe: how can i handle a datagridview in vb.net Pin
r_mohd29-Feb-08 22:36
r_mohd29-Feb-08 22:36 
GeneralRe: how can i handle a datagridview in vb.net Pin
yogesh_kumar_agarwal29-Feb-08 22:51
yogesh_kumar_agarwal29-Feb-08 22:51 
QuestionManage MDI childs Pin
highjo29-Feb-08 12:27
highjo29-Feb-08 12:27 
GeneralRe: Manage MDI childs Pin
J$29-Feb-08 13:16
J$29-Feb-08 13:16 
GeneralRe: Manage MDI childs Pin
yogesh_kumar_agarwal29-Feb-08 17:21
yogesh_kumar_agarwal29-Feb-08 17:21 
GeneralRe: Manage MDI childs Pin
darkelv29-Feb-08 17:59
darkelv29-Feb-08 17:59 
GeneralRe: Manage MDI childs Pin
Sachin Gokhale2-Mar-08 18:48
Sachin Gokhale2-Mar-08 18:48 
GeneralRe: Manage MDI childs Pin
highjo11-Mar-08 5:58
highjo11-Mar-08 5:58 
GeneralRe: Manage MDI childs Pin
Anoop Brijmohun2-Mar-08 23:13
Anoop Brijmohun2-Mar-08 23:13 
GeneralRe: Manage MDI childs Pin
highjo3-Mar-08 6:13
highjo3-Mar-08 6:13 
QuestionQuestio how to input massage into yahoo chat screen Internet Explorer_Server Pin
VB_Crazy29-Feb-08 9:10
VB_Crazy29-Feb-08 9:10 
GeneralRe: Questio how to input massage into yahoo chat screen Internet Explorer_Server Pin
Dave Kreskowiak29-Feb-08 9:25
mveDave Kreskowiak29-Feb-08 9:25 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.