|
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.
|
|
|
|
|
oops...ok, thanks very much for your help
|
|
|
|
|
Does any one know how to search for files using recursive directory info? I need to be able to start at C:\ and search through the entire drive. The code I have now only search within folders.
Here is my code:
'Declare variable.<br />
Dim dDir As DirectoryInfo<br />
Dim fFound As Boolean = False<br />
<br />
'Search directory for files and add to the listbox.<br />
For Each sDir As String In dirs<br />
If Not Directory.Exists(sDir) Then Continue For<br />
dDir = New DirectoryInfo(sDir)<br />
For Each ext As String In patterns<br />
For Each fi As FileInfo In dDir.GetFileSystemInfos("*." & ext)<br />
For Each item As Object In ListBox2.Items<br />
If Convert.ToString(item) = fi.Name Then<br />
fFound = True<br />
End If<br />
Next<br />
If fFound = False Then<br />
ListBox1.Items.Add(fi.Name)<br />
Else<br />
'Reset fFound<br />
fFound = False<br />
End If<br />
Next<br />
Next<br />
Next
Please Help!
jds1207
|
|
|
|
|
Examine this example from Jesse Liberty's Programming C# book. Then adapt it for VB. Note the recursive call to ExploreDirectory().
namespace Programming_CSharp
{
using System;
using System.IO;
class Tester
{
public static void Main( )
{
Tester t = new Tester( );
string theDirectory =
Environment.GetEnvironmentVariable("SystemRoot");
DirectoryInfo dir = new DirectoryInfo(theDirectory);
t.ExploreDirectory(dir);
Console.WriteLine(
"\n\n{0} files in {1} directories found.\n",
fileCounter,dirCounter);
}
private void ExploreDirectory(DirectoryInfo dir)
{
indentLevel++;
for (int i = 0; i < indentLevel; i++)
Console.Write(" ");
Console.WriteLine("[{0}] {1} [{2}]\n",
indentLevel, dir.Name, dir.LastAccessTime);
FileInfo[] filesInDir = dir.GetFiles( );
foreach (FileInfo file in filesInDir)
{
for (int i = 0; i < indentLevel+1; i++)
Console.Write(" ");
Console.WriteLine("{0} [{1}] Size: {2} bytes",
file.Name,
file.LastWriteTime,
file.Length);
fileCounter++;
}
DirectoryInfo[] directories = dir.GetDirectories( );
foreach (DirectoryInfo newDir in directories)
{
dirCounter++;
ExploreDirectory(newDir);
}
indentLevel--;
}
static int dirCounter = 1;
static int indentLevel = -1;
static int fileCounter = 0;
}
}
Kevin
|
|
|
|
|
Hi I'm writing a service in VB6 which will restart another service of it is hanging. I figure I can use QueryServiceStatus to retrieve the status.
The thing is, if the other service has crashed, then what will the status be? I have a feeling it will be SERVICE_RUNNING, in which case I will not be able to tell whether it has crashed. Does anyone have any ideas on how I can find out if my service is responsive?
Private Const SERVICE_STOPPED = &H1<br />
Private Const SERVICE_START_PENDING = &H2<br />
Private Const SERVICE_STOP_PENDING = &H3<br />
Private Const SERVICE_RUNNING = &H4<br />
Private Const SERVICE_CONTINUE_PENDING = &H5<br />
Private Const SERVICE_PAUSE_PENDING = &H6<br />
Private Const SERVICE_PAUSED = &H7<br />
Private Const SERVICE_ACTIVE = &H1<br />
Private Const SERVICE_INACTIVE = &H2
Before anyone tells me to fix the other service, I cannot as the company that wrote it is bust, Cheers!
|
|
|
|
|
topherino wrote: The thing is, if the other service has crashed, then what will the status be?
The behavior is undefined. It depends on who the service crashed and if it's even still capable of responding to the SCM. If it IS still responding, but the worker thread(s) in the service have crashed, well, there's no way for the SCM to know that unless the service code can tell if it's own worker threads have died. If it can't, it'll tell the SCM everything is just peachy!
These status codes are only reliable if the service is responding and working normally AND is properly coded to monitor it's own worker threads. If not, none of these status code mean a bloody thing.
topherino wrote: Before anyone tells me to fix the other service, I cannot as the company that wrote it is bust,
Hmmm. I wonder why that is... I'd start looking for a replacement for this service if at all possible.
|
|
|
|