|
I have RTF format data(Text and Images) in a Access database tabel( Datatype of the Tabel field is Memo) which i need to display in Crystal Report. When i am doing so i am able to see the Text but not the Images. I had changed the TextFormat Property of the field in Crystal Report to RTF.
What else should i have to do for the reqirement...
Can anyone Help...
Any Links or Articles which might help....
Jats
|
|
|
|
|
How to draw a organisation chart in Crystal Reports of VB.NET 2005. Or is there any free software/Active X available for the creating organisation chart.
Regards
Riyaz Zujer Patanwala
I.T.Programmer
Al Jaber Energy Services
P.O.Box 47467
Abu Dhabi
U.A.E.
|
|
|
|
|
hi
i m having dll file that can be used to send sms from pc but the problem is that i m using pocketpc that is connected to usb port and script i m having using com port. how we solve this problem. Is there any script available that is used to send sms using usb port
if it is please tell me
Thanks,
Nitu
-- modified at 1:11 Wednesday 23rd August, 2006
|
|
|
|
|
I was trying to use a hand icon cursor which i have the image i put it as a picture and call it when mousemove
-- Here my coding:
Private Sub Image1_MouseMove(Button As Integer, Shift As Integer, X As Single, Y As Single)
Image1.MouseIcon = Picture1.MouseIcon
End Sub
I wonder is there easy where to do it? i found in the properties :mouse pointer and mouse icon but i not sure how to use them, dont really have then hand cursor.
I'm using VB6 .
|
|
|
|
|
Cursors.Hand is what you want. What are Image1 and Picture1 ?
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
the image and picture is the item i want when i move my mouse to there and the cursor will change to a hand. is VB6 the properties have that function?? i dont really seen it...
how do i manually code it ?
|
|
|
|
|
Oh, this is VB6 ? Then I have no idea.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I can't really understand what your talking about. But, it seems liek you want to change the mouse cursor when it is over your images?? I think you're looking for the MousePointer property, not MouseIcon .
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
yes yes but how can i change the image in the Mousepointer property???? cause i cant found the "Hand" image
|
|
|
|
|
VB6 doesn't support it. It only supports the cursors found here[^], plus a custom cursor.
You'll have to to make your own icon of the hand cursor, load it into the MouseIcon property with LoadPicture , then set the MousePointer property to vbCustom , or the integer 99.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
I have create a watch folder object to c:\temp,
but something, the create event is fired when the large file is not completed.
Is there any existing method of other event to get the event when the document is completed?
|
|
|
|
|
I take it your talking about the FileSystemWatcher. No, there is no event that syas the file has been completely written to and closed. It's impossible to track.
The generally accepted work-around is to catch the File Created event, then try opening the file with exclusive access (DenyShare...). When you're finally able to open the file, the other application should be done writing to it. There are exceptions to this, but it depends on the application that's writing the file.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
In my case, I have a file placed on a file server,
I can set the permission about the folder/file.
How can I let the user can read the file in the application I create but they cannot direct access the file out of my application?
|
|
|
|
|
You have to wrap your file access code in some user impersonation code.
|
|
|
|
|
The only way I can see is to encrypt it so only your code can make sense of it.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
You can't do that. If you give a user permission to open that file, they can open it using anything, including Notepad or some file byte editor. You're only solution, like Christian said, is to encrypt the file so it can't be understood by anything other that your application.
Dave Kreskowiak
Microsoft MVP - Visual Basic
|
|
|
|
|
Is it possible to connect or print file in a thermal printer using VB .net?
if it is possible, How to connect or print file/documents in a thermal printer. this printer is a network printer. I've been searching a quit long time but i did not find any article that is related to my problem.
Thanks!
|
|
|
|
|
A printer is a printer, your driver handles communucation to it, no matter how it prints. Any printing tutorial should work, you just need to install it as a network printer on the PC running your program.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
Hi,
I am looking into programming a system information tool as part of a application suite, which I am currently having problems with. At the moment, I have been reading up on the aspects of the WMI at the MSDN section over at Microsoft.
I am wondering if anyone has any example code on making a query as the System.Management doesn't seem to be able to be referenced from the project properties screen and cant't use the Imports System.Management bit of code to include it.
Any help would be greatly appreciated.
Thanks, Andrew Robinson.
|
|
|
|
|
First you need to reference System.Management.dll
Here is some code for retrieving NT Users and NT Groups
Imports System.Management 'Need to reference System.Management.dll<br />
<br />
<br />
Public Module NTDomain<br />
<br />
Public Function GetNTUsers(ByVal NTDomain As String) As DataTable 'This function uses System.Management namespace<br />
Dim dtNTUsers As New DataTable<br />
With dtNTUsers<br />
.Columns.Add(New DataColumn("FullName"))<br />
.Columns.Add(New DataColumn("Name"))<br />
.Columns.Add(New DataColumn("Domain"))<br />
.Columns.Add(New DataColumn("LocalAccount"))<br />
<br />
Try<br />
Dim searcher As New ManagementObjectSearcher( _<br />
"\\" & NTDomain & "\root\CIMV2", _<br />
"SELECT * FROM Win32_UserAccount")<br />
<br />
Dim en As System.Management.ManagementObjectCollection.ManagementObjectEnumerator = searcher.Get.GetEnumerator<br />
While en.MoveNext<br />
Dim queryObj As ManagementObject = en.Current<br />
Dim dr As DataRow<br />
dr = .NewRow<br />
dr("FullName") = queryObj("FullName")<br />
dr("Name") = queryObj("Name")<br />
dr("Domain") = queryObj("Domain")<br />
dr("LocalAccount") = queryObj("LocalAccount")<br />
.Rows.Add(dr)<br />
End While<br />
.AcceptChanges()<br />
Catch ex As System.Exception<br />
Throw New PDM.DBA.GetNTUserListException<br />
Finally<br />
Dim drUser As DataRow<br />
drUser = .NewRow<br />
End Try<br />
Return dtNTUsers<br />
End With<br />
End Function<br />
<br />
Public Function GetNTGroups(ByVal NTDomain As String) As DataTable 'This function uses System.Management namespace<br />
<br />
Dim searcher As New ManagementObjectSearcher( _<br />
"\\" & NTDomain & "\root\CIMV2", _<br />
"SELECT * FROM Win32_AccountSID")<br />
<br />
Dim dtNTGroups As New DataTable<br />
With dtNTGroups<br />
.Columns.Add(New DataColumn("Type"))<br />
.Columns.Add(New DataColumn("Name"))<br />
Dim en As System.Management.ManagementObjectCollection.ManagementObjectEnumerator = searcher.Get.GetEnumerator()<br />
While en.MoveNext<br />
Dim queryObj As ManagementObject = en.Current<br />
Dim sSplit() As String = Split(queryObj("Element"), ",")<br />
Dim sType As String<br />
<br />
If sSplit(0).Contains("Win32_Group") Then<br />
sType = "Group"<br />
ElseIf sSplit(0).Contains("Win32_SystemAccount") Then<br />
sType = "System Account"<br />
ElseIf sSplit(0).Contains("Win32_UserAccount") Then<br />
sType = "User"<br />
Else<br />
sType = "Unknown"<br />
End If<br />
<br />
sSplit(1) = Replace(sSplit(1), "Name=", "")<br />
sSplit(1) = Replace(sSplit(1), """", "")<br />
<br />
Dim dr As DataRow<br />
dr = .NewRow<br />
dr("Type") = sType<br />
dr("Name") = queryObj("Element")<br />
.Rows.Add(dr)<br />
End While<br />
.AcceptChanges()<br />
End With<br />
Return dtNTGroups<br />
End Function<br />
<br />
End Module
Hope this helps, took me a while to sort this out as well.
Regards
Steve Jowett
|
|
|
|
|
could someone please help me with searching for items displayed in a listview. i want to be able to search by surname or name. that once i search, the listview automatically collapses to show the name that corresponds to the search typed in the search textbox.
-- modified at 18:41 Tuesday 22nd August, 2006
|
|
|
|
|
You need to iterate over your items and search them.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|
|
I have a form that is set to have an icon appear in the upper left hand corner of the title bar. I made the icon in Visual Studio 2005. It looks just fine on my machine (which runs windows 2000) but I've tried it on an XP machine and it has that default icon picture....I am guessing that I need to make another Icon Type in my icon to get it to work, but I don't know what type XP requires. Does anyone know if this is in fact my problem, and/or what type of icon I need to create? I am currently using a 16 by 16 with 16 bit color.
|
|
|
|
|
i wanted to clarify something
whats teh difference between public,private and static variables?
my idea is that static variables can be changes anywhere in the program and once it has change the change is reflected throughtout the program and i think thats the same for public
but thinking about an example if a variable is defined as static in one function and is pass to another function and value is changed will the value be changed in the previous function.i think so............as for the public i dont think the value change will be reflected in the previous program
kenny
|
|
|
|
|
First of all, if you want to be a programmer, learn to use google.
public - this variable/method is visible to anyone
protected - this variable/method is visible to this class, and classes derived from it
private - this variable/method is visible to this class only
private and protected are used for encapsulation, so a class can hide it's internal details and expose only a public interface.
static is completely unrelated. If a method is static, it has no state, you cannot use this, or any member variables in that method. Factory methods are one example of a method that will be static. A variable that is static means it only exists once. If you have 50 instances of foo, and bar is a static int, if you change it in one instance, that value is set for all instances.
Christian Graus - Microsoft MVP - C++
Metal Musings - Rex and my new metal blog
|
|
|
|