370 byte By
apopescu at 2007-11-20 10:50:09
Dear Colleagues,I have a grid on an aspx page and a small buton "export to PDF" at the buttom of the page that does nothing (yet).Upon clicking this button I should create and open up a pdf document that contains the grid info.I have no clue how to do this.Can anyone help me with some code samples?...
hallo sir.. im new in this vb6.. i have found some example in the internet that can load excel into msflexgrid. i wanted to add a plot button that can read from the msflexgrid and than plotted a bar chart table.. how can i do that... plz help me
Hi,<br/>I have a question to ask.<br/>Is it possible to load all the picture from a file to crysatl report automatically?<br/>DOes anyone has idea on this?
Hello,Now I want to make one batch file through vb application. and than after completion of creating batch file, it wiil be called through vb application.I have tried some code but it didint work:Private Sub CmdTrial_Click()Dim Str11 As StringStr11 = "cd C:\Dev\tti\build"Open "c:\unregister.bat" Fo...
365 byte By
raj_cg at 2007-11-20 10:51:00
Hi,I find a wierd problem with RichTextBox control.I load a rich text box with the contents of a file.If I try to undo after changing fore color, undo doesnt work.If i try to undo after changing font size, undo doesnt work.Can anyone let me know why it happens so ?I have attached a sample project.Re...
271 byte By
jagguy at 2007-11-20 10:51:01
I have a datagrid with data and i wish to display the contents of a field in column1 (pk) that has been changed.<br/>How can i do this and i use this for the datagrid<br/> DataGrid1.SetDataBinding(ds, "Departments")<br/>I can display data with datagrid ok.
963 byte By
g1m0v0n5 at 2007-11-20 10:51:02
Hai,I have one database table in the following structure:Compid Compname Personname1001 XXX Rajaram1001 XXX Joseph1001 XXX Hitler1002 yyy Ramesh1002 yyy KumarNow I am adding the Compname and Compid in the combobox. It is perfectly Adding in the following way:XXXXXXXXXyyyyyyBut my need is I want to a...
Two questions:1) I have a large amount of textin one of my labels but it will not word wrap. I have found out that vb.net word wraps automatically, whereas in VB6 you had control? Does anyone have any suggestions?2) I am trying to access the Text property on a label control from another module....
Hi All,I have two forms, the first calls the second when the start button is clicked using:CFT_Progress.Show vbModal, CFT_MainThe form will start a subroutine to write to Attachmate when loaded with the values from the first form:Private Sub Form_Load() CFTCSS_Activate_Session End SubMy probl...
610 byte By
KKanyan at 2007-11-20 10:51:25
I have a login form and need to allow for someone to login using a card swipe. On the form is a Name and Password text box. Say someone is on the form and the textbox has focus. Once any keystrokes come thru we capture them thru the keydown event for the form (keypreview is true). If so many key...
i have a listbox that has about 15 columns and I want to be able to click a row in the listbox and have that 1 row(15 columns) paste into a range on a worksheet. Each row is a name, address, phone #.....each row is a unique customer....The list is connected to a range on a separate sheet. Thanks.....
1322 byte By
impius at 2007-11-20 10:51:50
Hi...I don't know anything about VBA but I believe I am close to being able to output my Access query to Excel and manipulate the worksheet. In the code below I have been able to open a workbook and enter the word test in cell a1. I have tried several different ways to export a query called que...
I am using windowXP OS, i want to clear all the cookies in the window by clicking a button in VB, how to do?
828 byte By
apopescu at 2007-11-20 10:51:53
Dear Colleagues,I have a read-only gridView object on an aspx page that should just render data. I provided the data source and I called Databind().The results are showing up but the columns captions are the table captions. How can I change them? I tried to set the name of each column by using grind...
518 byte By
hardik at 2007-11-20 10:51:56
Hi,I have to write a piece of code in VB 6.0, which will poll certain file types (e.g. *.TXT, *.TIF) from a specific directory and if files are found,e.g. FileOne.TXT, FileOne.TIF, then it will do certain processing.I guess, I will have to use FileSystem object. But don't know, how to enumerate...
Hi, I'm new at the Crystal Report programming and I need a lot of help, I'm currently using Visual Studio 2005 doing a visual basic windows app, there is a part when i need to show the invoice of some products and print it to a pre-formatted page (you can see it in the atachment), how can...
I would like to know how to create System DSN in Windows Vista?Sample coding i have its works for Windows XP.<br/>Thanks
Hi!I want to save clicks and mouse movements to my user. I have a form that has a treeview control with several levels in it. I'm trying to implement by code the node click event in the control.I know the node index i want "click by code". I wrote the following lines but they don't workdim...
176 byte By
Torsus2 at 2007-11-20 10:52:16
In C++ you can call a window function by ::WinExec, for example<br/>::WinExec("notepad.exe text.txt", SW_SHOWMAXIMIZED);<br/>is there a similar command in Visual Basic...?
I have kept my project folder at Desktop. the path is at my system is "C:\Documents and Settings\ADMIN\Desktop\Code"Now i want copy a BAT file from this folder and paste it at "C:\Project\Abhi".To perform this task, i have made a application in which first it will make a batch file, whcich will prin...
632 byte By
o9z at 2007-11-20 10:52:40
Ok, here is what I haveDataset A - This is the data displayed in every field of the DGV(all textboxes + 1 combobox)Dataset B - This is populated from a different SQL server and table than DatasetA and needs to be the COLLECTION of my combobox in the DGVI have the displayed items working fine, but I...
i want to make a vb application, in which it can read one file named "service.config", when user hit the submit button, it will read this file and if there is string "c:\dev" in that file, it should replace that string to "c:\program".Please let me know, it will be great help for me.thanksabhi...
521 byte By
Broodmdh at 2007-11-20 10:52:47
I have two Date variables that I am trying to combine into a single new variable. One contains the date, and the other contains the time (ex: var1 = #04/08/2007#, var2 = #3:45 PM#). I've attempted to combine them by doing the following:Dim fullDate As New Date(var1.Year, var1.Month, var1.Day,...
Greetings. I've got a ListView control and some other controls that I used to edit/add data in the ListView. Initially the ListView is populated from a Database, I can select an item and the other controls will be populated with the info so that I can edit it OR I can hit the "New" button and...
672 byte By
Trizeen at 2007-11-20 10:53:03
Hi, I'm trying to make an mp3 player. But I get the error message "Run time error 91. Object variable or with block variable not set." in the code below.Private Sub playertimer_Timer()Dim playerposition As IMediaPosition'Go to the next song.If playerposition.currentposition > playerposi...
I'm trying to make the fields and text boxes that are visible in a subreport change based on data in the SQL Server table. For example, if Table.Fieldname = "Type 1", then CrystalReports.Field.visible=no CrystalReports.Field2.visible=yes, etc. I know this is not valid code for Crystal Reports...
Does any one know how to do this?<br/>Thanks for any help
933 byte By
bsepp at 2007-11-20 10:53:12
I am tasked with converting a VB probram to C.I have came across some parts of code that seems odd to me, and since it has been more than 20 years since I have even seen Basic code I cannot remember how this works.Here is the code:[code]Function CheckLeak(PresLeak As Boolean) As BooleanDim presrange...
2149 byte By
AeroProg at 2007-11-20 10:53:19
Hi, I am new to Crystal Reports, but I know Basic and other programming. I have Crystal Reports XI and am pulling data from our ERP/MRP system, Epicor Vista (Progress DB).I've been asked to figure out a Crystal Reports for our company (I get thrown into these projects). I know what the report s...
1911 byte By
james3302 at 2007-11-20 10:53:21
This is an MS Access form and when I step through the code is works fine, but when I run the code it sets the txtErr text box to #name?. I orginally used a select case statement and switched to IFs to see if that helped. Mnth = Format(Date, "MM") If Mnth = "01" Then txtErr.ControlSou...
534 byte By
acmdo at 2007-11-20 10:53:24
Hello,I have a question about the file names and paths with commas inside the string.I am trying to open the windows explorer with one file selected, in order to do this I am usingProcess.Start("Explorer.exe", "/n,/e,/select," & path & filename)The instruction does not work if path is some like "e:\...
How would i set a value to a variable that is a date?<br/>if i Dim something like dDate As Date, how would i set a certain date to it?<br/>like a value like 01/1/2007...
4055 byte By
Probie at 2007-11-20 10:53:32
Need the skill of the pros here on this one. I have on my form a Command button, 4 textboxes and 2 picture boxs. I am try to get the program to figure out this equation, print the results in Picture1 and make a graph in Picture2.It starts out with Picture1 by printing the titles but will not show an...
2131 byte By
bob000555 at 2007-11-20 10:53:36
Private Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.Click Dim a, b, c, d, e1, data(0 To 100), min, max, search As Integer Dim output As String e1 = Int32.Parse(TextBox1.Text) min = 0 max = 100 output = "somth...
hi there! i'm developing a school project. it's about creating an interface for applets. it is developed under VB 6.0. the software should go through an evaluation from Java programmers. i hope that you could help me. i wont' take much of your time. i really need you're help guys...
198 byte By
Torsus2 at 2007-11-20 10:53:56
In visual C++ I know that I can use:<br/>CInternetSession ses(sBrowser);<br/>CStdioFile *pFileSrc = ses.OpenURL(sUrl, 1, INTERNET_FLAG_TRANSFER_BINARY);<br/>Can I do it in Visual Basic...?
Greetings. I'm trying to write a little sub routine that will update a listview. I've got several list views and different controls that will write to them so the sub needs to be quite flexible, here is my code:Public Sub UpdateListView(ListViewName As String, ListViewItem As Long, ListV...
Hi, I have a Shift_ID field that i want to run an IF formula on that saysIF ({Field.A} = Odd Number) then "Days"Else "Nights"As you can probably tell i need it to show in my report the Night Shift or The Day Shift.Probably easy for someone but i can easily be a buffoon and miss these thingsRegardsSt...
474 byte By
g1m0v0n5 at 2007-11-20 10:54:17
Hai,I had developed one project for maintaining the customer details of my company. That database is now containing near about 5,000 records.When I try to enter a new customer record or searching a customer detail, it is taking lot of time that is 5 to 8 minutes to hit the database. Why it is like t...
Suddely my reports dont work on my latopI get the cant logon to database text, this appairs in crystalreports and in de vb.net programs that use the reports.On any other pc that runs these reports it work perfect.also i cant connect to any access or exel file when i try to make a new report?Please h...
Hi all,Once you've connected to a database and it gives you a dataset.xsd, how do you navigate between records in code and also populate a datagrid. Sorry, I am a novice from vb6 and only know how to use the old data control with an msflexgrid and databound textboxes (by the way can you still u...
I am working on a project to have multiple reports display in one vb.net report program. The problem I run into is what ever I design in Crystal looks completely different in the vb.net crystal reports viewer and any time a report has crystal syntax in it the vb application errors out. Is this no...
What is mod function in VB6? its means 6 mod 2 return 0 & 7 mod 2 return 1.<br/>Please help me.<br/>Thanks
hi<br/>please tell me how can i get signal strength in db from wlan card <br/>in visual basic
I hope to insert 3 blank rows between row(i) and row(i+1), where i is uncertain and supposed to change. I tried to use:Rows("i+1:i+3").SelectSelection.Insert shift:=x1downThe above codes doesn't work. But it will work well if I change variable i to some certain numbers, eg.Rows("14:16").SelectS...
7764 byte By
Giftx at 2007-11-20 10:54:54
VB6 - Programatically tell excel to print only the area that has data.Hello everyone,I am creating an excel spreadsheet using VB 6.0. After running my program, I may process either one or more records, but when I printView and initiate a print, it prints the page with one or more records and prints...
Hi everyone,I'm using a command shell to run the cacls command to add permissions on students personal folders right after the student's active direcory account has been created. It was fine when I test the code with single account. But when large amount of students are involved some stude...
I have a simple peice of code that queries a database and returns a count. Everything works fine, I get all of the results that I expect, and no error messages are displayed. But, when I'm testing I noticed that my debug window is full of this message: "A first chance exception of type 'Sy...
431 byte By
TJ-Ariff at 2007-11-20 10:55:13
Hi,I have one project, for leave form , to take time how long the employee going out.that say,(in 24 hour)Time out = 10:32Time In = 14:31The total time out must be = 3:59but when i wrote in VB the total is = 3.99now my coding :TIn = Text1.TextTOut = Text2.TextText3.Text = TIn - TOut--------Please he...
273 byte By
chunks at 2007-11-20 10:55:18
hi all,<br/>i have a problem, suppose i have draw a TextBox and a PictureBox but which drawing them first i draw textBox and then draw Picturebox over textbox. at run time i want TextBox to show above PictureBox. i cant use Picturebox as Container in this project. pls help