|
Sorry
The program is in Vb.net 2005
and the Database is SQL DATABASE
I would love if my stock screen did the following
user clicks on textbox
Types "p"
Then the listbox that i have below it will scoll the product database and show the product with the closest description
Like how some sap programes Do that [ yet they have 500000 items]
|
|
|
|
|
Hello
How to read text from file.txt into textbox on web page? I am using vb.net .
|
|
|
|
|
Reading text from a text file is as simple as File.ReadAllText. Passing it into a web page, is more complex, you'd have to host the browser in your app, and insert the text using the DOM.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
I am sick of using Data Environment for creating reports through VB 6.0 so I wanted to know the exact method with full detail as to how can we make use of crystal reports through VB6.0 for the creation of reports.
Thanks & Regard,
Indrojeet
Indrojeet Bhattacharya
|
|
|
|
|
Hi,
I dont know how to create crystal reports by using VB6. But i can help u for calling report from VB6. Here is a sample code
gtRptDsn = "DSN = " & ServerName & ";UID = **; PWD=****"
<report control="">.Connect = gtRptDsn
<report control="">.Destination = crptToWindow
<report control="">.Destination = crptToPrinter
in report function
<report control="">.ReportFileName = tcpath & "ReportName.rpt"
//stored procedure parameters
<report control="">.StoredProcParam(0) = GiSbuid
<report control="">.StoredProcParam(1) = iProjectId
<report control="">.StoredProcParam(2) = iVendorId
<report control="">.StoredProcParam(3) = ICategoryId
<report control="">.StoredProcParam(4) = IGroupId
<report control="">.StoredProcParam(5) = IMaterialId
//for header(like company name and addresss) use Fomula
<report control="">.Formulas(0) = "Company='" & GTEnterprise & "'"
<report control="">.Formulas(1) = "Add1='" & GTSbuAdd1 & "'"
<report control="">.Formulas(2) = "Add2='" & GTSbuADD2 & "'"
// to show report
RptQuotation.Action = 1
RptQuotationReport.PageZoom 100
// to make the report as a child of MDI form
<report control="">.WindowParentHandle = mdiFormMain.hwnd
By Dileep
I love my bug since she is my best friend.
|
|
|
|
|
What all .dll references I need to add ?
Indrojeet Bhattacharya
|
|
|
|
|
Indrojeet_Bhattacharya wrote: so I wanted to know the exact method with full detail as to how can we make use of crystal reports through VB6.0 for the creation of reports.
If you want that much detail, read the documentation on Crystal Reports. Though I think all support has been dropped for VB6 in the lastest versions.
|
|
|
|
|
Gud MOrning
can we use a Readonly property in Flexgrid.
we can means give me a syntax.
pls its urgent
kankeyan
|
|
|
|
|
which read only property in flexgrid you want to use??
|
|
|
|
|
I'm using vb6 with Crystal Report8.5
I have sent a value to the "?text" field like this:
Dim rpt As New CrystalReport1
rpt.ParameterFields.GetItemByName("text").AddCurrentValue ("a")
How can I send the second value to the same field?
Thanks
|
|
|
|
|
Surely, if you was to move a second value to the same field, that would replace the first value.
Steve Jowett
-------------------------
Sometimes a man who deserves to be looked down upon because he is a fool, is only despised only because he is an 'I.T. Consultant'
|
|
|
|
|
what if I don't want to replace the first value? I mean I want send a second value to the same field but in the second row
Please help me,
thank
|
|
|
|
|
I have created a datagrid that has a coloumn which value is calculated from two other coloums.
so the data datagrid column Total = Column Amt * Column Price
I would like to capture theevent when a cell is edited and enter or down arrow is pressed.
Once the event is triggered I need to asertain the cell row and column details.
Then I will add some code to recalculate the data and refresh the grid.
So the question.
How do I capture the enter after edit of a cell.
How do I get the row and column details.
Any Help would be apreciated.
Thanks
|
|
|
|
|
Hi
This is very urgent i have
if any one know about convert long number into date format
i have souce i java script but i want to convert into vb 6.0 code
1108508090 this is input number
var l =1108508090 *1000+86400;
var aDate = l; // miliseconds Since 1970;
theDate = new Date(aDate);
dd = theDate.getDate();
mm = theDate.getMonth()+1; // 0 based
yy = theDate.getYear();
if (yy < 1000) yy +=1900; // Y2K fix
alert (dd+'/'+mm+'/'+yy);
plz help me
|
|
|
|
|
|
You have a problem. What does this input number represent?? Is this the number of seconds since a specified date?
Without knowning this, it's impossible to translate the code. Java's Date class starts at Jan 1, 1970. VB6 doesn't really have a Date class, but can handle dates in a much greate range, depending on the representation and the functions used.
|
|
|
|
|
Hi
i understand ur confusion ,
here they are taking millisconds
|
|
|
|
|
OK. Since Java's epoch starts at Midnight, Jan 1, 1970, add the number of seconds to this date/time:
newDate = DateAdd("s", (milliseconds / 1000), "01-Jan-1970")
|
|
|
|
|
Hi
thx ur reply but here i want display date like dd/mm/yyyy
plz give me reply
|
|
|
|
|
Nothing in the code I submitted displays the date in any way.
So, you have to supply the code to return a string with the formatted date yourself. Like using the FormatDateTime[^] function, or using your own custom format string in the Format[^] function.
|
|
|
|
|
Hi
thx for solved the problem
|
|
|
|
|
Currently, I'm working on altering an image processing application to accept 8-bit instead of 32-bit images. The problem that I'm currently having is replacing the drawImage method. Currently, I've been investigating BitBlt to draw these 8-bit images to no avail. drawImage requires a 32-bit image, and for all examples of BitBlt in VB.NET it seems that you need to use the method Graphics.fromImage(), which also requires a 32-bit image. Is there any way to draw an 8-bit image using VB.NET? Thanks in advance.
|
|
|
|
|
You're wrong. You can create an image of any bit depth you like. Your image processing options will be seriously limited in 256 color, unless the image is greyscale, then it will be fine. Your best option really is to process in 32 bit ( and, to be honest, it's a ton easier to be stuffing the right colors into each pixel than looking them up in a palette and worrying about if you have any options left or need to figure out two colors you can merge to a single value ), and then converting at the end, which is as a easy as creating an 8 bit image, and drawing your 32 bit image onto it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
"I am working on a project that will convert a FORTRAN code to corresponding C++ code.I am not aware of FORTRAN syntax" ( spotted in the C++/CLI forum )
|
|
|
|
|
Hi!
I have a cuestion, in vb6 the errors are handle by on error statement, he is very good error handle, but i would like can get more information about error than the err.description, who i think is more simple.
I would programming my error handle similar to firefox error handle wich show the line error, the html code error line, error line reason, etc, i believe what not exist in error handle basic
Thanks very much for your help
Sorry: you could tell me if this is possible but using api because i working in access with vb to applications please, thanks
-- modified at 11:52 Thursday 14th June, 2007
|
|
|
|
|
The errorhandling in VB6 is actually pretty primitive and cannot supply the information you want. There is no API call you can make either since those API calls are already made by the VB6 runtime to get the information it's already giving you.
About the only thing you can get is the message, the line number, and the module where the error occured. There's nothing you can do to get any more information about what caused the error.
|
|
|
|