How To View A XLS Document In A ListBox?
I have a list box, which is called List1. Then when I click on a Picture box, which is called Picture1, it will then be able to make a row of information be placed in the last vacant position of the list box.
View Complete Forum Thread with Replies
See Related Forum Messages: Follow the Links Below to View Complete Thread
View A Ms Word Document
-----------------------------------------
Hello!
My project opens a word document in background and work with it. After finishing I need to view this document in a form so to modify (eventually), print and close the document.
How can I do this?
-----------------------------------------
View WordPad Document???!!!
AS strange as this may seem
I would like to know how to open and view a file with wordpad.
Is there a reasonable way to do this in a VB project?
I created some RDC crystal reports and would like to be able to something similar but with wordpad, or notedpad if it must be
Any thoughts??!!
Am I totally out of my tree, or should this be easy?
Thanks guys
View Word Document From Within VB
Interesting question (to which I obviously do not know the answer and am thus seeking help from you guys!) - a client recently asked me if it is possible to view a Word document from within a VB program. He wants to know if I can write him something that will allow users who do not have Word installed on their machines to view documents (read-only). The documents will contain hyperlinks and pictures, so simply reading them into a text box will not work.
I could always change the documents to .rtf and write a help file to view them, but that is crude and fairly inflexible. So does anyone know if this is possible?
thanks
Andrew
Document/View Class
Hi,
I am new to VB. I know that Visual C++supports the Document/View class concept and would like to know if this kind of thing is supported in VB.
Take the simple MS WORDS aplication as an example , using VC++ I can easily manage the data inpute, delete, update ... with Document Class, while View Class just automatically update the application interface, without having to add any codes.
Can I have a similar support in VB ?
Thank you very much for your responses..
Split A Document View
How can I split a document view in half and do 2 different things going on in the view at the same time. I want to split it like having 2 different frames. Any ideas?
View Document Using Word Viewer
i using VB6 to retrieve data from Access and fill into predesign Word document. this is no problem run on my pc. when i install to other client pc, which have no MsWord, definitely the fuction cannot run. Then i install Microsoft Word Viewer, it still cannot run. error at :
Set WApp = New Word.Application
Error:
429: AxtiveX component cannot create object
is that posible to view document using Word Viewer on client pc? and how?
Pls help
View Code From Html Document Not On Web
I can view the source code of a web page with vb6 and the inet control.
However, I need to be able to view the HTML code from a document on my computer.
Anybody know how?
Thanks.
Martin
View Excel Document In VB Application
I want to display Excel & word file as view only in vb application. How is it possible? Is there any third party control available to show excel & word file cotent and formulas?
Thanks in advance
Open And View Word Document In A VB Form
I am trying to make a program that allows me to select my word document file and then opens in within the form and allows me to view, edit, and save it. Does anyone know how to do open a Word file within the form? I am relatively new at visual basic. Thanks in advance.
Webbrowser1.document Doesn't Reflect IE View Source
I often use the webbrowser control to load a page, fill in a few form fields in that page, and then submit the form. (I'm sure that I'm not the first to write programs that automate account logon's!)
I've recently run into a problem that I've not seen before: the webbrowser document doesn't represent the actual html source that is displayed by clicking IE's "View Source" function. Naturally, if that document doesn't represent the source html, my program is unable to fill in a form and submit it.
I'm wondering if this web page is using some new tactic to hide the source from just this sort of access. The URL of the page is https://www.chevroncreditcard.com/cccard/en/public/cce_enroll.asp?TargetPage=prelogin.asp. If you go to that site, you will see userid and password fields as well as a bunch of buttons. View Source shows these fields appropriately within the form, but the document that the webbrowser loads contains zero forms, zero anchors, and of course, zero input fields.
I'm at a loss with this one. Any ideas why the webbrowser document doesn't reflect the html source?
List View Help (Not ListBOX)
i need to be able to copy the contents of listview1 to listview2 i cant work it out if u could show me some code that would help me out i would apreciate it
Thanx in advance
Moving Listbox View
After picking an item in a Listbox, I want to return it to the top of the list. using listindex just selects an item, but doesn't return whats shown to that item. I want it to display item 0.
How do I accomplish this?
I had:
Code:
ListBox1.ListIndex = 0
but it just highlights the item, but does not show it.
i'm showing one item at a time, and scrolling to the picked item.
Tree View With Listbox
Is there any control wherin I can get the tree view connected with a list/combo box.Say for example in properties window in VB you replace the left hand side with a tree control .On clicking the nodes of the tree view the right hand side of the properties window change correspondinly
Thank you in anticipation.
How Do I Put A Txt Document In Listbox?
Does anyone know how I am supposed to put a txt document called payroll.txt in a listbox called lstemployees. Once I have the info put in a i have to get certain parts of it and have them put in seperate text boxes. Here is an example of a couple of lines of info to be put in the listbox:
Klinton Carpenter 18.00
*Cynthia Crenshaw 18.00
Richard Crouse 19.00
After that info is in the listbox. I need to put the FIRST NAME, LAST NAME, and NUMBER and INITIALS in seperate textboxes.
Can anyone help me with this? I've tried everything.
How Do I Put A Txt Document In A Listbox?
Does anyone know how I am supposed to put a txt document called payroll.txt in a listbox called lstemployees. Once I have the info put in a i have to get certain parts of it and have them put in seperate text boxes. Here is an example of a couple of lines of info to be put in the listbox:
Klinton Carpenter 18.00
*Cynthia Crenshaw 18.00
Richard Crouse 19.00
After that info is in the listbox. I need to put the FIRST NAME, LAST NAME, and NUMBER and INITIALS in seperate textboxes.
Can anyone help me with this? I've tried everything.
List View To ListBox Thingy
Hey guys I have a listview called lvwfound and I was wondering, how do I click on a item that added to the list view to a list box thing.
The code that adds thigns to the list view is
VB Code:
Dim i As IntegerDim item As StringDim iResponce As Integeri = Me.lvwFound.ListItems.Count 'list countFor i = 0 To i - 1 'MsgBox Me.lvwFound.ListItems(i + 1) item = Me.lvwFound.ListItems(i + 1) '
Would i replace lvwfound with list4 ? Also i there a click event for a listview so only when I click on items in a listview it will add that item to a listbox?
Thank you.
ListBox, Bump New Item Into View ?
I have a ListBox that holds 5 lines of data. In my program, I add a line to the ListBox as certain events occur.
When I go to add the 6th item to the ListBox, a scrollbar appears, but the 6th item doesn't show up at the bottom.
For example, I want the ListBox to look like this when the 6th item is added:
Item #2
Item #3
Item #4
Item #5
Item #6
Thanks for any help...
View Search Results In A Listbox
Hi!
I would appreciate some help here...
I have a form where the user choose what he/she want to search the database for e.g. Name or Arrivaldate.
When the user has choosen what to search for he/she types in at text box what the search word is.
When the user click on the Search button the matching posts should be presented in the listbox.
This is my code so far:
VB Code:
Option Explicit Dim db As DatabaseDim rs As RecordsetDim max As LongDim i As LongDim ws As WorkspaceDim errormsgDim strSearchResults As String Private Function lstSearchName() If rs.RecordCount = 0 Then errormsg = MsgBox("No posts where found.", , "Error")End If rs.MoveLastrs.MoveFirst max = rs.RecordCount rs.MoveFirst lstSupportSearch.Clear For i = 1 To max lstSupportSearch.AddItem rs("Name") rs.MoveNextNext i lstSupportSearch.Visible = True End Function Private Sub cmdAdvancedSearch_Click() Dim strSearchString As StringDim datSearchString As DateDim boolArrival As BooleanDim boolName As BooleanDim boolSection As BooleanDim boolArrend As BooleanDim boolDeadline As BooleanDim boolFinished As Boolean strSearchString = txtSearchStringboolArrival = optArrivalboolName = optNameboolSection = optSectionboolArrend = optArrendboolDeadline = optDeadlineboolFinished = optFinished If boolName Then strSearchString = txtSearchString dtSearchSupport.Recordset.FindFirst ("Name='" & strSearchString & "'")End If If dtSearchSupport.Recordset.NoMatch Then MsgBox "No posts where found."End If Call lstSearchName End Sub Private Sub Form_Load() Set ws = DBEngine.Workspaces(0)Set db = ws.OpenDatabase("data.mdb")Set rs = db.OpenRecordset("tblSupport", dbOpenTable) End Sub Private Sub Form_Unload(Cancel As Integer) frmNewSupport.Show End Sub
As for now, I can se ALL my posts in the listbox.
But I do not get a error message.
As an extra feature, it would be nice if the user could dblclick on one post in the listbox and get back to the main form with that post active...
Please help me...
Resolved (Using A LIST VIEW Instead)ListBox Help Please
Why cant this simple bit of code work in VB yet does work no probs in excel vba. All it does is populate a listbox with 5 columns but it bombs out with the error WRONG NUMBER OF ARGUMENTS OR INVALID PROPETY ASSIGNMENT.
VB Code:
Private Sub cmdCommit_Click() With List1.AddItem (txtDesc.Text) 'column 1.List(.ListCount - 1, 1) = cmbType.Text 'column 2.List(.ListCount - 1, 2) = TxtDate.Text 'column 3.List(.ListCount - 1, 3) = txtAmount.Text 'column 4.List(.ListCount - 1, 4) = cmbOther.Text 'column 5End With End Sub
please help cos I dont know whats wrong
Listbox Or Listview To View The Html Code
hi guys
I couldn't find a listbox to view the web which i could also allows me to put the html code on my own program. Here is what I really want to have...
And It is possible to make a two listbox on each side with the close bars that will allows me to hide the listbox to close it only once at a time??
Help would appreciate it. Thanks
How To Print Column Name In The Listbox To Document?
Actually I populate all the column header name of the listview into listbox1. Then I choose the column name from listbox1 to the the listbox2. Now I want to print the column header in the listbox2 to the document. How to do that using this Printer.Print ?
Code:
Private Sub List1_DblClick()
'listbox contains all column header name from the listview. The selected column from list1 will added into list2 item.
On Error Resume Next
List2.AddItem List1.Text
List1.RemoveItem List1.ListIndex
End Sub
Private Sub Form_Load()
'populate all the column header from listview to the list1
For i = 1 To Form5.ListView2.ColumnHeaders.Count
List1.AddItem Form5.ListView2.ColumnHeaders(i).Text
Next i
End Sub
I try print out. How I can print the listview listitems base on the selection column name from listbox? I try print the listtiems but fail. How I can print the listitem?
Code:
'print column header
Dim j As Integer, iTab As Integer
iTab = 5
For j = 0 To List2.ListCount - 1
Printer.Print Tab(iTab); List2.List(j);
iTab = iTab + 20
Next j
'column listitems
Dim k As Integer, iTab1 As Integer
iTab1 = 5
For k = 0 To List2.ListCount - 1
Printer.Print Tab(iTab1); Form5.ListView2.ListItems(List2.List(j));
iTab1 = iTab1 + 20
Next k
Listbox "View To All" Problem
I am currently designing a chatroom program in which I have a server and a client using winsock. The server is up and works fine.. and the client connects fine, and users are able to talk to eachother.. My problem is.. when a new user joins the chat it doesnt add to the list box, the 1st person to join can view anyone who joins, but if someone joins after someone else has, they wont be able to see them in the listbox/chatroom. Ive heard that you need to send out the list to everyone.. or something.. i dunno. Any examples or help would be much appreciated
Visual Basic List View Control To View Network Computers
Hi,
I am working on simple network connect utility and ready with the functinality. But I am stuck at a very important aspect of the GUI where I need a List View Control that will view the computers from the available LAN domains. And will let us select a particular computer on expanding the domain List Item. If not a list view then a treeview rather.
Also will this control let me select a NETWORK COMPUTER ONLY but not shared folders on its individual drives. Only computers has to be selected. Not the nodes (folders) shared at them.
Thanks.
Vinitsankhe.
How To View Records In Recordset In Access Datasheet View Using VBA Code
Hi all,
My requirement is - when a user fills in some date in Text boxes, and clicks a button, I use that data to create an SQL select query, execute it and store it in a recordset object.
I am able to retrieve the records and show them in the Debug window as follows
' Open a Recordset object.
recordset.Open Source:=strSQLFind, _
' Display the records in the Debug window.
Do While Not .EOF
For Each fld In .Fields
Debug.Print fld.Value & ";";
Next
Debug.Print
.MoveNext
Loop
Instead of printing on the Debug window, I want to view the records of recordset object in datasheet view.(so that the users can modify the values of the selected records)
So, could anyone please suggest me a way to do so.
Windows File Explorer.. Icon View And List View.
I'm trying to duplicate a function of the explorer.. The folder contents view.
See example of what I mean...
http://www.ibarn.net/fun/files/thumblist.jpg
I can do everything I need using the filelistbox with the sole exception of changing the display style. I don't want a file list, I want a list-view or icon-view. (Preferably both, with the option to switch between them.)
So my question to you fine people is...... what API or component could I find this capacity in? I've looked at all of the components and didn't see anything that looked close, and a search on the subject yeilds hundreds of people trying to emulate the "filemanager" explorer style, but none trying to kick out a normal, boring icon view like this.
Any help would be greatly appreciated.
Thanks.
List View PopUp Prob (lvwIcon View) *Resolved*
Hi all,
I have a listview in large icon view (lvwIcon). I have a popup menu displaying some options when the user right clicks an item that is specific for that item.
My question is this -
I want a different popup menu to show when the user right-clicks on a blank area of the listview which would display general options.
In my testing, whenever a blank area is clicked, the selected item is the first item (if none had been selected) or the current selected item (if one had already been selected).
I currently use the selecteditem.text to determine what pop up menu is to be used.
I guess in theory the code might be something like ;
Code:
If lvwMain.SelectedItem = Nothing then
PopupMenu mnuGeneral
Else
PopupMenu mnuSpecific
End If
Any help would be greatly appreciated.
Cheers
Jack
How Do I Edit And View Records Selected Using Sql In A Form View
I am using a sql statement to gather records from a database table. I
want to view these records in text boxes on a form. I want to be able
to view, edit, add, and delete operations to these records.
how do i put the data selected by the sql statement in the text boxes? do i use a loop? how do i scroll through all the records that are retrieved? what is different than scrolling through all the records in the table?
the names of the text boxes are : txtTerminal, txtMemoryLoc, txtContents
the names of the records' data fields in the database table are : Terminal, MemoryLoc, Contents
The sql stmt i think i should use is : Select * FROM selectedTable WHERE txtTerminal = txtTerminalNumber
the variable 'txtTerminal' is the name of the text box to display information regarding the selected terminal in.
the variable 'txtterminalNumber' is the number of the terminal the sql stmt selects records for.
Thank You in advance,
I can be emailed at : cpp_dev@yahoo.com
Win98 Landscape View To Portrait View
Hi everyone!
I would need help in changing my form's screen layout from portrait to landscape since the monitor, will be place in a 90 degress, where my program will run. It will be difficult to access the application since the screen is standing on its side. I'm using win 98 and vb 6.
Help urgent
Matching List View To Tree View
Hi Everyone,
Quick Question. I have a list view and a Tree view that are sharing the same data. The Tree view control lists all the Task Names and the List view control has the task detail. (Start, End Date and resources.)
The only issue is that the Line widths do not match. The Tree View nodes have more white space between them then the list view. Is there a way that I can match the width of the tree view rows to the rows on the List view?
Thanks
BDS
Can I View Multi Forms-same Page View?
If I create three forms: form1, form2, form3
Then I like to have form1 show on the top left and half page down and half page across. Then form2 show to the right of form1 for other half page across and half way down (as form1 is half way down).
Now form3 will show taking up the bottom full half of the page (Not being split in half across the page as form1 and form2).
I know how to Load form then show form for form1 and I can hide form1 then show form2, yet I can't find how to show two or more forms like I've mention above.
If someone could show me to a good thread or something,
Thanks
Rick101
List View, Tree View Controls
I have had the same problem... I ended up righting my own controls so that it would run faster on the population of the control...
Sorry
Brooke
How To Clear A Webbrowser Document Made With Document.write Commands
I'm using document.write to populate a Webbrowser object with HTML. How do I clear it so that the next Write command replaces what's already showing rather than adding to the end of what's already there? - Andy
___________________________________________________________________
If you think nobody cares you're alive, try missing a couple of mortgage payments
MS Word 2000: Closing Forms In A Document From Another Document With Code
I have a project, in which I use a global template to manipulate different other templates. In those templates there are Userforms built in to gather information to use in a MailMerge. The problem I'm having is that I want only to hide the forms in the templates themselves, and close them in the global template when the whole application is closed. The trouble is that I can't find a way to access the open forms from the global template. Can anybody help me?
Making A Document As Active Document And Save It
A power point presentation is exported to word using vb powerpoint and word libraries.the problem is the ppt got exported to word and is opened as Document1.how to make this as active document so that i can save it and get the path for further use.this is a problem which needs to be solved very soon.
Form View - Design View
I have come across an anomaly.
I am using a combo box to change the record displayed in a group of text boxes in a form.
When I first open the form, the data is not updated as I change my selection in the combo box. Also, I notice at the bottom it is record 1 of 1 for the Record Selector.
However, when I click design view for that form and then back to form view, when I select a record in the combo box, everything now updates.
Anyone have any ideas on this.
View Imags From DB In Listing View
Hi
I want to display images stored in access database in vb6 form but need to list more data beside the photo like:
producer name || Site || Logo || Profile
----------------------------------------------------------
Mona || www.company.com|| photo|| XXXXX
I tried to fill imagelist in runtime and assign values to listview from but everytime the imagelist returns nothing.don't know if listview didn't support photos or use another control
Tree View + List View
Hai,
In my application, I have Tree view on left side and List view on the right side which is just like windows Explorer. I would like to get the same functionality like Explorer where you can move the seperator between Tree View and List View. That means I would like to make the List View wider or shorter as I wish.
Can any body help me?
Thanking you in anticipation
*RESOLVED* Getting Selected Item In List View To Move Into View*RESOLVED*
Hi, I am trying to get a List View to act like a combo box. At the top of the List View there is a text box where the following code searches the List View for the text entered, I have this code in the Change event of the text box so a search is done on each letter typed.
The code finds the record without a problem but I want it to move to the top or into view. Right now I have to scroll down to find the record it selected. Anyone have any ideas? Here is my code:
Code:
Private Sub txtFindFirst_Change()
Dim i As Integer
Dim l As Long
On Error GoTo NoRecord
If txtFindFirst = "" Then
GoTo NoRecord
Else
l = Len(txtFindFirst.Text)
For i = 1 To lstContacts.ListItems.Count Step 1
If StrConv(txtFindFirst, vbUpperCase) = StrConv(Left(lstContacts.ListItems(i).Text, l), vbUpperCase) Then
lstContacts.ListItems(i).Selected = True
Exit Sub
Else
End If
Next
End If
NoRecord:
On Error GoTo NoList
lstContacts.ListItems(1).Selected = True
strTransferID = lstContacts.SelectedItem.ListSubItems(1).Text
Exit Sub
NoList:
Exit Sub
End Sub
Thanks in advance for any help.
Converting 'ASP' Document To 'Text' Document
I am struggling with this for 2 days any help would be appreciated.
I want to take the screenshot of the web page and store it in a text file which I can later read and access the data in it. It is an 'Active Server Page' (.asp) so what I get using 'OpenUrl' is the code with all the html tags even though I try to save it in a text file (.txt).
Can someone please help, best would be if I can get the code.
Thanks,
|