|
Yes!
The Fanatical All Black Supporter - Kea Kaha
|
|
|
|
|
AAGTHosting wrote: ) Am I supposed to store binary data in a data structure?
Not the way that you are attempting.
A structure is usually used for types that represent a single value, not a data record. It's recommended that a structure shouldn't be larger than 16 bytes, your structure is three times that size. Also, your structure contains objects, which more or less defeats the purpose of a structure.
A structure can not be read or written directly to a file, which it sounds like you were planning to do. You have to write each and every property to the file.
When in doubt, use a class. If you want to create a structure, you should read up on how a structure works exactly.
AAGTHosting wrote: 2) Do I need to define the length of each string column in the data structure record?
No. If you write a string using a BinaryWriter, it stores the string length in the file.
AAGTHosting wrote: 3) Can I search the contents of the binary file (array?) by for an example name, column or line number?
No. You can read the records from the file and look for property values.
---
"Anything that is in the world when you're born is normal and ordinary and is just a natural part of the way the world works. Anything that's invented between when you're fifteen and thirty-five is new and exciting and revolutionary and you can probably get a career in it. Anything invented after you're thirty-five is against the natural order of things."
-- Douglas Adams
|
|
|
|
|
Hi
I am getting this message when I run the application
" 1004 : Unable to set the PrintGridlines property of the Pagesetup class".
This application is running fine in Production . I am in the process of taking over the application from a different developer and it works fine on his machine too.
My PC is connected to a Network Printer and am able to print anything from
my PC. Infact based on the some info from Microsoft website, I went and
installed the printer driver and it still did fix the problem.
The code where I am getting the problem is as follows
With xlSheet.PageSetup
.PrintGridlines = True
.CenterHorizontally = True
End With
Any help in this regard will be appreciated
Regards
RS
-- modified at 14:13 Wednesday 24th October, 2007
rs
|
|
|
|
|
So is this a Windows Forms app, or ASP.NET app?
|
|
|
|
|
This is a Visual Basic 6.0 Application.
rs
|
|
|
|
|
The machine has to have at least one printer installed AND it must be selected as the Default Printer. Also, this printer must be able to support Page Setup properties. Printers like the Generic Text Printer driver do NOT support Page Setup, so setting properties still will not work.
What's the printer you have installed on this machine?? (Start/Settings/Printers...)
Another thing I just thought of. The parameters you put into the properties must be valid for the printer. For example, if the printer has a unprintable margin of .25" on the left side of the page and you try and set the margin to .10", it'll fail.
|
|
|
|
|
I have scoured google - looking for a component that will allow me to burn data cd's, from my VB.Net app.
The products I have found (vbaccelator, xpburn, binary magics) appear to have been abandoned. They give no to inquiries or emails.
What do you use?
|
|
|
|
|
I don't use any. But, I'd probably look into Nero's SDK[^].
|
|
|
|
|
So ? I use XPBurn and it works just fine.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
XPBurn is no longer on the MSDN web site - it's been 'phased out'. I managed to get a copy from another website. However there is no documentation, the XPBurnDocs.chm file points to a nonexistant link. No support. Also it needs to work with Vista.
This is a commercial product, I need a component with some support / commitment behind it.
|
|
|
|
|
It does work with Vista, we've tested it on Vista.
However, it sounds like you may want to buy a commercial SDK.
Christian Graus - Microsoft MVP - C++
"also I don't think "TranslateOneToTwoBillion OneHundredAndFortySevenMillion FourHundredAndEightyThreeThousand SixHundredAndFortySeven()" is a very good choice for a function name" - SpacixOne ( offering help to someone who really needed it ) ( spaces added for the benefit of people running at < 1280x1024 )
|
|
|
|
|
Yes, I'd like to buy a commercial SDK - do you know of one?
|
|
|
|
|
If you want to burn cd's I highly reccomend numediasoft.com.
They give you the complete app - that burns DVD's, data cd's, audio cds, and is written to high standard. In 30 minutes I was burning cd's. It took a day to modify the app for my purposes.
NONE of the other CD burning packages returned my emails.
|
|
|
|
|
State:
We are developing desktop applications in VB.NET with .NET 2.0 and Visual Studio 2005. We use some 3rd party .NET and Win32 DLLs that are well tested. Nonetheless we sometimes encounter non-reproducible errors that look very much like memory corruption. (I.e. elements of a strongly typed array changing type in the middle of the array on their own, variables containing nothing even though a few lines of code earlier they are initialized). We are not sure if the memory problems originate from our code of from the libraries we use, but we lack any tool to validate that it is not our code.
Question:
What is a good VB.NET memory corruption detection tool?
Integration into Visual Studio would be nice, but is not a must.
Commercial or open source is both fine.
Thanks,
Ingmar
|
|
|
|
|
The only tool I've ever heard of for that is IBM's Rational Purify. I've never used, nor seen it, so I can't vouch for it's effectiveness.
|
|
|
|
|
Hi,
not really an answer to your question, but here it goes: you can do two tests without
any specialized tools:
1. run other software on the same machine
2. run your app on another machine
if 1. seems OK and 2. fails, you probably have bugs (such as thread synchronization problems);
if 1. fails and 2. seems OK, your machine most likely has a problem.
Luc Pattyn [Forum Guidelines] [My Articles]
this months tips:
- use PRE tags to preserve formatting when showing multi-line code snippets
- before you ask a question here, search CodeProject, then Google
|
|
|
|
|
This one is throwing me for a doozie. Have a program that is recording times and writing to a database. We are in testing mode right now. We looked at the database during testing and noticed that sometimes the date were written in the mm/dd/yyyy and time in the 12-hr format. Other times it was in the dd/mm/yyyy and time in the 24-hr format.
So I wrote a q&d to output dates and noticed that when using firefox the date was in dd//mm/yyyy format and when in IE the format was in mm/dd/yyyy format.
But when we were testing we noticed that it sometimes would write in dd/mm/yyyy format from IE also. Sporadic.
The site is on the web server and the database is also on the same web server.
Anyone know how or why this would happen?
Thanx in advance.
Jude
|
|
|
|
|
TheJudeDude wrote: We looked at the database during testing and noticed that sometimes the date were written in the mm/dd/yyyy and time in the 12-hr format. Other times it was in the dd/mm/yyyy and time in the 24-hr format.
This tells me you're storing your date/times in your database as a String, not as a DateTime value. If so, this is a HUGE mistake that will cause you all kinds of headaches like this.
|
|
|
|
|
Hi there,
could anyone help me start with this: don't know where to look or start
I have 3 tables which i want to show in a datagrid
--> Parent First row = Customer name
+ child first row totalsum of orders for this customer
+ ChildChild First row = Detailed orders for this customer
With a + or - button to click open or not
I also work wit *.xsd scheme
tableAdapters,... already have a relation between those tables
But then i'm stuck
Please get me back on track...
If i read everywhere it's all in ASP.net with dataset and thinks like that...
But i don't know how thhat helps me...
thanks
A.
|
|
|
|
|
Create a Dataset Object Fill the Dataset with Tables then Create the Relationship between these tables make the DatagridView.DataSource property equal to that Dataset. Does this solves your problem?
AliAmjad (MCP)
|
|
|
|
|
It is all with dataset but i have tableAdapters
so how do i fill my dataset with correct data throug TableAdapters?
The relationship is already created between my tableAdapters!
i can use My tableAdapter as well to fill a datagrid, why change to a Dataset?
A.
|
|
|
|
|
DataGridView is a Windows Forms control only. It doesn't support showing child tables the way you want without HEAVY modifications to the DGV. You'd be better off using a 3rd party grid control like DevExpress' XtraGrid.
|
|
|
|
|
No other Solution?
I don't want the third party grid!
But thanks anyway
A.
|
|
|
|
|
The other solution would take you about 3 months to write. Like I said, the DGV doesn't natively support showing child tables. I went for a 3rd party solution, and after downloading and installing the controls, had my requirement done in about 3 minutes.
|
|
|
|
|
You can use the "old" DataGrid.
|
|
|
|