Question about Operating Systems

1 Answer

New word page in vb

I want to print some addresses which are in a table.For that I like to bring a new word page and automaticaly coppy all the address to that page, so that i can print the page.
Please give me a solution.
Waiting for your response.Thank you

Posted by on

  • moothappa Oct 29, 2008

    I also need help to export files from VB table to word.

×

1 Answer

  • Level 1:

    An expert who has achieved level 1.

    Corporal:

    An expert that hasĀ over 10 points.

  • Contributor
  • 2 Answers

I'm sorry, just so I understand clearly, you're working with Visual Basic? Or with MS Word?

Posted on Sep 05, 2008

Add Your Answer

Uploading: 0%

my-video-file.mp4

Complete. Click "Add" to insert your video. Add

×

Loading...
Loading...

Related Questions:

1 Answer

How to print a page that has no print option


Hi -Welcome to FixYa.
To print a page a page that has no print option, you can use the keyboard shortcut, CTRL+ P keys (just the control and P at the same time) on your keyboard. It will bring up the printer window or it will bring up your print preview screen depending on what your default print setting is set to. I have mine set for print preview before printing. I hope this helps you. Post a comment if you need further assistance. Thanks for using FixYa and have a great day.

Sep 07, 2011 | Microsoft Windows XP Professional...

1 Answer

Cannot bring up my contact list on bcc forwarding e-mails. I have to put each name in individually. I do not like this new yahoo mail and am considering other options. Cannot find a tech support phone...


If you're using Classic Mail:
> Click on Forward or New.
> THEN Click directly on the word TO and your mailing list (address book) opens.
> Check the box (To or CC or BCC) by each name you want to send to, and then click the "insert checked contacts" tab.
................................
IF you're using the New Yahoo Mail.
First of all you have to click the link that says "show bcc", (which enables the BCC line.)
> Click on "Forward" or "Compose".
> Then click directly on the word BCC--(or To or CC--whichever line you want the addresses inserted on). That will also open your mailing list.
> Click on ONE contact FIRST----and THEN press and hold the "ctrl" key, while clicking on the others you want to send to.
> Click OK.

In either case---the addresses will be inserted on the address line for you.

IF YOU ARE USING THE NEWER VERSION YAHOO MAIL THEN YOU CAN REVERT BACK TO CLASSIC MAIL.
On top left side of mail page
click MAIL CLASSIC beside sign out and my account
or
on the top right side of mail page
click options
then click switch to yahoo classic

Aug 17, 2011 | Operating Systems

1 Answer

I can't access my email account


If you still have your old computer you can coppy the settings. If not phone your provider and they will walk you through the setup step by step. It is a good idea to take a snap shot of each step of your settings so if you have to reinstall again you can do it easily. To take a snapshot of a page hold down the Ctrl key and the PrtSC keys and it will copy the page.

Jan 01, 2010 | Operating Systems

1 Answer

Have had FX-2180 using printer driver FX-1050 with custom paper size (8.5" x 4" - payslips) working over a network for years. Have added a new PC to the network, using same o/s (Windows XP pro) added same...


go into run type- cmd. The command prompt will appers. type ping then ip address of the newly attacted computer. if it sents and receives 4 packets successfully then there is no problen but if not then change the IP addresss of the computer.

Aug 06, 2009 | Operating Systems

1 Answer

I need help in Visual Basic as i am new to the visual basic 6


Dear, the following page contains the tutorial for beginner to visual basic 6, I hope that would be very helpful to you.

http://www.hitmill.com/programming/vb/beginner.html

Best regards.

May 26, 2009 | Microsoft Windows XP Professional

1 Answer

DAO in vb


Nice try. Find an upper-class student to give you one-on-one tutoring with your homework.

Apr 16, 2009 | Operating Systems

1 Answer

How to connect vb with ms access


se Adodc OR Even better.. ADODB. for this you need to get MDAC fromMicrosoft free download.(check under project_References- Microsoft DataActiveX objects.. the current no is 2.8. if it is not there download invb directory.

next, you can learn about creating a DSN from control panel, ODBC. onceyou learn this, connection becomes a piece of cake. get some free vbtutoriasl from WWW.

then

you need to use DAO or ADO to connect to the database. better study both but since ADO is current, i am showing that code.
under Menu Project_References, put a check mark on Microsoft ActiveXData Objects latest version (though it works for all, currently 2.8with sp pack 1 ).

at the general declarations:
dim conn as adodb.connection, rec as adodb.recordset, esql as string,esql1 as string
Private Function connect()
Set rec = New ADODB.Recordset
Set conn = New ADODB.Connection
esql = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "D:VBDesigndhana2.mdb" & ";Persist Security Info=False"
'here you put the correct path of your mdb file. and check if you have jet 4.0

conn.Open (esql), , , 0
End Function

private sub form_Load()
connect
end sub
and for adding records:
say let us say you have 3 fields. then have 3 textboxes and 1 command button on the form.

private command1_click()
esql1="select * from Yourtablename"
rec.open(esql1),conn,, adOpenDynamic, adLockOptimistic
rec.AddNew
rec.Fields(0) = text1.Text
rec.Fields(1) = Text2.text
rec.Fields(2) = text3.text
' you need to check if in your access table design you have Allowed Zero length .. set it to Yes for all text fields.
rec.update
if not rec.eof then rec.movenext
rec.close
conn.close
set conn to nothing
end sub

this will add new records to access table from VB.
' for picture store the full path of the path and the picture file nameint the text field. and in the picturebox of VB form for viewingrecords again you need ADO or ADODC and here you code:picture1.picture=Loadpicture(rec.fields(3) ' depending on where thepicture field is located. you need to make a few trials.
under Menu Project_References, put a check mark on Microsoft ActiveXData Objects latest version (though it works for all, currently 2.8with sp pack 1 ).

at the general declarations:
dim conn as adodb.connection, rec as adodb.recordset, esql as string,esql1 as string

Private Function connect()
Set rec = New ADODB.Recordset
Set conn = New ADODB.Connection
esql = "Provider=Microsoft.Jet.OLEDB.4.0;Data Source=" & "D:VBDesigndhana2.mdb" & ";Persist Security Info=False"
'here you put the correct path of your mdb file. and check if you have jet 4.0

conn.Open (esql), , , 0
End Function

private sub form_Load()
connect
end sub

and for accessing records:

private command1_click()
esql1="select * from Yourtablename where id =" & val(text1) ' for integers

esql1="select * from Yourtablename where name=" & "'" & text1 & "'" ' for string

rec.open(esql1),conn, adOpenstatic, adLockreadonly

label1.caption =rec.Fields(0)
label2.caption= rec.Fields(1)
label3.caption= rec.Fields(2)
' you need to check if in your access table design you have Allowed Zero length .. set it to Yes for all text fields.

rec.close
conn.close
set conn to nothing
end sub


' similarly there are routines to ADD, Delete, Edit, View etc.

Feb 26, 2009 | Operating Systems

1 Answer

How to add columns(Vertical) only in Msflexgrid from database table using VB.


you have to open your current project in VB then go to "add references" (its somewhere in the menu bar) then go find microsoft acess and add it as a reference. then go to object browser and you'll find all the functions you need to interface between your project in VB and MS Access.

good luck !!!

Dec 30, 2008 | Operating Systems

1 Answer

New programmer in asp.net with vb


It's been almost 18 months since you asked your question.
Do you still need information?

Aug 21, 2008 | Operating Systems

2 Answers

File handling in visual basic 6.0


Following are a handful things u have to know about VB file handling

for more details...go to http://www.5starsupport.com/info/vb.htm

File Handling (Generic)

While VB is working on a better approach (FileSystemObject), the built-in file handling statements are still the only way to access data other than through the VB database capabilities. Your skills in this area can make or break your ability to work with various formats. The OPEN/CLOSE statements are critical to success, but the LOF, EOF, and LEN functions are used even more often! It's also a given that you'll use the DIR function regularly.
Dir - Returns a filename that matches a pattern
temp$ = Dir ("*.*")
CurDir - Returns the current directory
temp$ = CurDir
MkDir - Creates a directory
mkdir ( "newdirectoryname" )
ChDir - Changes the current directory to a new location
chdir ( "newdirectoryname" )
ChDrive - Changes the current drive
ChDirve "A"
RmDir - Removes the indicated directory
rmdir ( "directoryname" )
Freefile - Returns an unused file handle
i = freefile
Open - Opens a file for access, locking it from other applications
open "filename" for input as #1
Close - Closes a file so that other applications may access it
close #1
LOF - Returns the length of a file in bytes
i = lof ( #1 )
EOF - Returns a boolean value to indicate if the end of a file has been reached
statusvariable = eof ( #1 )
Name As - Renames a file
name "filename1" as "filename2"
Kill - Deletes a file
kill "filename"
Fileattr - Returns attribute information about a file
i = int ( tempvariable )
GetAttr - Returns attributes of a file or directory
i = GetAttr("c:\windows\temp")
SetAttr - Sets the attributes of a file
SetAttr pathname, vbHidden
Reset - Closes all disk files opened by the OPEN statement
Reset
FileDateTime - Returns data file was created or last edited
FileDateTime ( filename )
FileLen - Returns length of file in bytes
FileLen ( filename )
FileCopy - Copies a file to a new name
FileCopy sourcefile, destinationfile
Lock - Controls access to a part or all of a file opened by OPEN
Lock #1
UnLock - Restores access to a part or all of a file opended by OPEN
UnLock #1
Width # - Set the output line width used by the OPEN statement
Width #2, 80
File Handling - ASCII-specific

While VB is working on a better approach (FileSystemObject), the built-in file handling statements are still the only way to access data outside of a data base. Your skills in this area can make or break your ability to work with various formats. The OPEN/CLOSE statements are critical to success, but the LOF, EOF, and LEN functions are necessary to build useful code.
Line Input - Reads an entire line of ASCII text
line input #1, tempvariable$
Write - Puts data in a file, with separators for the data
write #1, tempvariable$
Print - Puts data in a file with no separators
print #1, tempvariable$
Spc - Used in a print statement to move a number of spaces
Print #2, var1; spc(15); var2
Tab - Used in a print statement to move to TAB locations
Print #2, var1; Tab(20); var2
File Handling - Binary-specific

VB also support features which allow you to access a file on a byte-by-byte basis. The good thing about it is that you have more control, the bad thing is that you may have to write more code. Generally, a programmer will use the option (ASCII or Binary access) according to the least code he has to write. For binary access the Get/Put are equivalent to the Line Input and Print functions used in ASCII text file access. The big difference between the two is that binary access will read (Get) an exact number of bytes of data, and the reading can start at any byte within the file.
Get - Reads data from a file
get #1, anyvariable
Put - Puts data into a file
put #1, anyvariable
Seek - Moves the current pointer to a defined location in a file
seek #1, 26
Input
input #1, anyvariable
Loc - Returns current position with an open file
i = Loc(#2)

Jan 23, 2008 | Operating Systems

Not finding what you are looking for?
Operating Systems Logo

Related Topics:

27 people viewed this question

Ask a Question

Usually answered in minutes!

Top Operating Systems Experts

Les Dickinson
Les Dickinson

Level 3 Expert

18299 Answers

Brian Sullivan
Brian Sullivan

Level 3 Expert

27725 Answers

Prashant  Sharma
Prashant Sharma

Level 3 Expert

1127 Answers

Are you an Operating System Expert? Answer questions, earn points and help others

Answer questions

Manuals & User Guides

Loading...