|
OK, suppose your SQL Server is installed on one machine. It recognizes the C: drive only on the machine it is residing on. It will not recognize the C: drive on a client machine. So trying to load a file with a path "C:\test1.txt" when the file is on the client will not work, because the SQL Server looks on it's own C: drive for the file and the file does not exist. If you need to run the action from a client, the SQL Server needs to recognize a mapped drive on the client. If you copy the file to the SQL Server machine, use C:\Test1.txt. If your file is on your local machine as C:\Test1.txt, AND your local C: drive is mapped to the SQL Server machine so it recognizes your local C: drive as "Y" then use Y:\Test1.txt.
Hope that makes sense?
Robert
|
|
|
|
|
you're right, thanks rwestgraham. I got it working now.
|
|
|
|
|
I'm making a program in VB.NET to manage concerts, but the problem is that each concert would have it's own database fields since each concert has different kinds of expenses and whatnot. So I thought in order to do this, I could figure out how to create new tables using the language, but I can't seem to figure it out. I've looked through my teacher's manuals and can't seem to find the code for it. I'm using an OLE database made in Microsoft Access.
I found something called datasetname.tables.add but I don't really know how to use it. If someone could help me, I would appreciate it.
|
|
|
|
|
How much do you know about databases? Databases don't have fields and you should not create a table for each concert.
Instead of looking VB manuals, maybe you need to look at some books that explain relational databases, how information is stored in tables, and how the tables are related to each other. If the database is created correctly, you should not have to keep adding tables to it.
|
|
|
|
|
I need to publish the reports which are in VB online,using ASP.ie. to open up the reporst in the Internet explorer browser.Pls send me the solution...as i need to implement immediately...
|
|
|
|
|
That's about a vague a question are you can get. What reports? Generated by what? Crystal Reports? Excel? Access?
Without further information, there's nothing we can do to help you.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
I got the Management Information System(MIS) in VB.Now my requirement is to publish this MIS report that can be of any sort,in Internet explorer using ASP.So that people can view the report online.
|
|
|
|
|
kebi wrote:
Management Information System
This could be a million different products by any number of manufacturers. You're going to have to get with the manufacturer of your software to see what interface there is for generating the reports you want.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hi,
I am trying to make a font bold at runtime but I can not work it out.
I am currently changing the color of the font using:
lblPageStatus.ForeColor = System.Drawing.Color.Red
How can I do the same to make it bold?
Thanks
Shawn
|
|
|
|
|
u have to need creating a new font, then use that. Dont forget The Bold property of any Font is ReadOnly
Dim newFont as new Font (previousFont.Name, FontStyle.Bold )<br />
lblPageStatus.Font=newFont
|
|
|
|
|
Thanks for the reply. I will give that a go. It does seem a little odd that you have to create a new font to change the bold property, when you can just set a color without having to create a new font. Oh well. Thanks again!
Shawn
|
|
|
|
|
It's not odd if you understand the difference between selecting a font and drawing one. When you change the type to Bold, you're actually changing the shape of the Font. If the Font includes a bold version, then you're actually selecting a new font just by changing the style. For instance, a font can include a normal version of the character outlines, italics version, bold version, italics and bold version, underline, ... Now, if you selected a bold version of a font and the font file don't have a bold version, it can be calculated, or approximated. In either case, a new set of outline coordinates are used to draw the font. This is why properties like Bold are ReadOnly. Now, changing the color doesn't change the coordinates of the outlines that are drawn, so you can change the color all you want without regenerating the coordinates again.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello there
I want to place the background image on tree view and list view.
Can any one help me out ?
Best Regards
Rizwan Bashir
|
|
|
|
|
Again, not support through properties. You'll have to ownerdraw the controls to get this functionality. Search for "custom drawn treeview" or "ownerdraw treeview". You'll find a bunch of examples, even a few here on CodeProject.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello there
I want to change the color of Toolbar , Status bar, Menu (fore color and back Color) any one knows how ?????
Best Regards
Rizwan Bashir
|
|
|
|
|
Toolbar - check into the BackColor and ForeColor properties. If the functionality you want isn't supported by these properties, you'll have to ownerdraw the ToolBar. Google for "ownerdraw toolbar" for examples.
StatusBar - same thing - check into the BackColor and ForeColor properties. Now, if you want to change the color of the StatusBarPanels, you'll have to ownerdraw those. Again, Google for "ownerdraw StatusBarPanel".
Menu - Changing the color through properties is not supported. Again, search for "ownerdraw menu". There's even a bunch of example here on CodeProject. Just search the Articles.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello
Can i get keyboard toggle state from .net like GetKeyBoardState() API in Class.If any body have directInput.dll file send to me
My Id: rugfy@yahoo.com
Ishak
|
|
|
|
|
Hi
I'm in the process of rewriting a access database type of application, but I run into a problem.
This is the Access VB code.
dn = FreeFile
Open matrix For Binary Access Read As #dn
Get #dn, dsn, km
Close #dn
This the VB.Net code
FileNumber = FreeFile()
FileOpen(FileNumber, filepath, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared)
FileGet(FileNumber, FindValue)
To start, I don't none the structure of the file. I'm sending in a search value
which should return a result. The VB.Net function isn't returning the same value as the Access VB function.
Any ideas why its happening would be appreciated!.
Thanks
Regardt
Africa is a tough country
--"Hello daar vir die Afrikaans sprekende"--
|
|
|
|
|
What is returned all depends on the data type of the variable you are reading this data into. If you define FindValue as an Integer, VB.NET will read the first 4 bytes of the file into FileValue. If your defined FindValue at a UInt64, the first 8 bytes will get read. The same is true for the VB code in Access. What is "dsn" and "km" defined as? What is FindValue defined as?
BTW: An Integer in VBA and and Integer in VB.NET don't have the same definition. A VBA Integer is 16-bits (2 bytes), while in VB.NET is 32-bits (4 bytes).
Also, in the Access code, you're reading two values, where as in the VB.NET code your reading one. Any reason why?
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Hello
You Have not given much information what is the type of file you want.ok if you want to get required string from
Test.txt file you can give like this
dim str as string("strSearch",10)
FileNumber = FreeFile()
FileOpen(FileNumber, filepath, OpenMode.Binary, OpenAccess.Read, OpenShare.Shared)
FileGet(FileNumber, str)
Which Give the result start from 0 To byte 10 bytes if you want to search all give the file size you can give random access also.I hope it will help for you
Ishak
Progarmmer Analyst
ITI KSA
|
|
|
|
|
is it possible to open an internet explorer browser or a mozilla firefox using vb.net and then search something in google, and svae it to your database?
thanks for your replies
|
|
|
|
|
You can open the default browser with shell execute. Getting the results of a search and stuffing them into your db is a more complex proposition, but IE is a COM object, after all....
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|
|
if you were able to open the default browser, is it possible to set the home page of the default browser into a website, which is in your database?
|
|
|
|
|
Yes, all you do is shell launch the full "HTTP://" website address. This will launch the default web browser and show the page you launched.
RageInTheMachine9532
"...a pungent, ghastly, stinky piece of cheese!" -- The Roaming Gnome
|
|
|
|
|
Change the default home page ? That's pretty user hostile behaviour, but yes, you can do it, I believe. I'd never be so rude, though.
Christian
I have several lifelong friends that are New Yorkers but I have always gravitated toward the weirdo's. - Richard Stringer
|
|
|
|