|
Im trying to code a crystal report which gets the information from a dataset, I have the C# code to bind the data but i need the vb code, or if anyone knows of a good example on the net that might help.
Thanks,
Colum
private void Page_Load(object sender, System.EventArgs e)
{
CrystalReport1 report=new CrystalReport1();
CrystalReportViewer1.Visible=true;
DataSet ds=new DataSet("Account");//give same name as on
//dataset1 table header
DataTable table=new DataTable("Account");//give same name as on
//dataset1 table header
table.Columns.Add("Fname",typeof(System.String));
table.Columns.Add("Lname",typeof(System.String));
table.Columns.Add("Salary",typeof(System.String));
DataRow row=table.NewRow();
row["Fname"]="Mathew";
row["Lname"]="Hayden";
row["Salary"]="5000$";
// add to table
table.Rows.Add(row);
ds.Tables.Add(table);
// set report's dataset
report.SetDataSource(ds);
// set report source
CrystalReportViewer1.ReportSource =report;
}
|
|
|
|
|
Well, I'd normally say just run it through one of the C#/VB.NET code translators on the 'Net, but you have an object in that code snippet that doesn't exist in the Page_Load function, 'table'.
See this Yahoo search[^] for a list of translators.
RageInTheMachine9532
|
|
|
|
|
Hi All,
Does anyone know of any way to decrypt/decompile an installer?
I built an installer with Installshield. By accident, I deleted all the source for the installer. Not sure if there's any tool that could reverse back the whole directory?
I can unzip the Data1.cab file, but I could only get to some of the files, and some are still encrypted. Plus I lost all the custom actions.
I still need to reuse the installer files and structure for future installer.
So I don't have to build everything again. I don't need source code, because I have that backed up, but I want all the dll, exe, custom actions, windows components (with the right version), also the structure of the ism file.
Any suggestions? Thanks in advance!!
Syn
|
|
|
|
|
If it was an MSI, you could just open the MSI file. Works perfectly using Wise For Windows Installer. If it was the older Setup.exe version of an installer, start recoding...
RageInTheMachine9532
|
|
|
|
|
i need to know how to open word and power point sdocuments directly in the browser?
u see i have some pdf, word and powerpoint documents.they are placed in some location on my hard drive.
i have the paths of all thesein my SQL database.
now these paths appear in a data grid like hyper links its something like this:
doc1.ppt (power point file)
doc2.pdf (adobe file)
doc3.doc. ( word file)
so as soon as i click on a hyperlink, the selected document should open up in the browser directly.
the pdf files open directly the word and power point docs do not open.
Please note that i am developing an ASP.net (with VB.net) application
now how do i do this?
|
|
|
|
|
This is probably because you don't have Office installed or you don't have the Word and Excel viewers installed, either will give you the functionality to view documents in a browser. See the Microsoft Office Downloads[^] here.
RageInTheMachine9532
|
|
|
|
|
Wish to create a human-face image on PDA, and now we separate the face into some individually images, like hair, eyes, nose and mouth...
Our goal is to treat all the individually images as particular objects, and could drag them into a main working space (a larger image place), then could save them into a single image files.
1.How to control the object with the code that could move and transform the object feely?
2.How should we design the program to let the user could draw and to alter the images like in painter?
3.Would anybody please tell us where could we inquire about the information about GPRS upload program?
The program coder we use is EVB; we sincerely wish you could help us.
|
|
|
|
|
Program Description:
An online retailing company, BuyFromUs.Com, offers a range of products for purchase by people who live in Australia. Orders are placed through the website, and handled by the main office in Adelaide. The products include clothing, household appliances, books, and non-perishable foods.
Information about the products is stored in one file, and information about customers’ orders is stored in a separate file. You have been asked to write a program to perform analysis of the data in the orders information file, so that BuyFromUs.Com’s Board can make informed strategic decisions to improve the profits of the company.
BuyFromUs.Com currently purchases its stock at wholesale price from a variety of suppliers, and sells the products at a higher price, thus deriving their profit from the difference in price. If a particular product is very popular, the board would consider rising the product price for future customers, to increase their profits; whereas products that are not so popular may be dropped from the offerings list.
The outcomes of the program will be various reports. The program must be able to tell the Board (user) the following information upon request:
• The number of people in each Australian state who have ordered a particular product and the total profits made from the sales of that product around Australia. (The user should enter the catalog code of the product).
• For a selected state, a list of the number of people who have ordered each product.
• The details of any customer order. This includes the customer’s name and state, as well as details about the product they have ordered.
• A list of the products that are sold by the company (according to the data files, see below), together with their three-letter catalog code.
You should assume that if a particular customer has ordered multiple products, you are to treat it as though it was a separate customer (i.e. a ‘customer’ only ever orders one item).
Data Files:
There are several data files required to be used by your program.
The products.dat file consists of Product Information records, which includes data in the following format:
• Name of product
• Catalog Code for product (a short 3-letter code, unique for each product)
• Wholesale price of product
• BuyFromUs.Com’s selling price of the product
Products have numeric codes associated with them, starting with product 1 being the first record, product 2 being contained in the second record of the file, and so on. The alphabetic catalog code is provided for humans to more easily refer to a particular product.
The orders.dat file consists of many Customer Order records, which includes data in the following order:
• Name of customer
• State of Australia (one of VIC, NSW, TAS, SA, WA, QLD, ACT, NT)
• The numeric product code of the product ordered by the customer in this order.
As with the products file, the orders in the orders.dat file are associated with order numbers starting with order 1 for the first record in the file.
Both files contain an integer as the first item in the file, stating the number of records that follow in the file. The actual records begin from the second line of the files.
|
|
|
|
|
And all this means what to us? I take it there is a question in here somewhere, but I'll be damned if I can find it...
RageInTheMachine9532
|
|
|
|
|
Dave Kreskowiak wrote:
I take it there is a question in here somewhere, but I'll be damned if I can find it.
I couldn't find it either. I think he/she want someone to do his/her assignment for them.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
If you want help with your homework, we are pretty happy to help with a specific problem you might have. But this looks like you want someone to do it all for you - that is not acceptable.
If you need a push to start you off, let us know what you are finding challenging and I'm sure someone will point you in the right direction.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
How do i get the creation date for the active document
besides the method below. I know this is going to return me the
date in string, but what i want to get is the date in window format
1233333 this kinda format.
ActiveDocument.BuiltInDocumentProperties("Creation Date")
|
|
|
|
|
Hi!
I'm looking for an informative "step by step" guide/example on how to use/create crystal reports in VB.NET.
The basics, and som nice tips! Maybe a complete example?
Anyone knows where to find that?
Cheers!
Andreas(VB.NET beginner)
|
|
|
|
|
Crystal's web site offers some good examples you can use to get started
|
|
|
|
|
Hi every body!
please tell me! how can i set a code part to critical section?
Thanks!
|
|
|
|
|
Can anybody tell me why this is illegal and how to do it correctly?
Option Strict is on
Dim IDList as ArrayList
Dim IDs() as Int32
IDs = IDlist.ToArray(GetType(Int32))
--------------Error---------------------------
Option strict on dissalows implicit conversions from System.Array to 1 Dimensional array of integer
Definitely a PEBCAK! (Problem Exists Between Keyboard And Chair) My First ASP.Net site is now up RedRavenRPG
|
|
|
|
|
This is because IDList.ToArray() is returning an Array object and not an Object() . You might want to remove the GetType(Int32) and try it. But I think it's still going to fail. The problem your running into is an ArrayList is a general type collection, not an Object(). It can hold any type of data without being cast to a specific type first. You can create an ArrayList without any parameters and just start adding Strings to it and it won't complain. Same is true for Integers...if you just create the ArrayList and start adding numbers to it, chances are that ArrayList is a collection of Integers and not Int32s. This is were your casting problem is coming from. Your trying to do two cast's, an Integer to an Int32, and an Array to an Object(), under the Strict rules.
You either have to use the ArrayList as is, or use an Object() array instead of an ArrayList (consistancy of object types is key!), or get rid of the Option Strict.
Personally, I never use Option Strict...
RageInTheMachine9532
|
|
|
|
|
Can anyone please tell me how to capture the packet in vb.net(code)in windows and how to program to manipulate the data field of the TCP and UDP packets. i have no idea about it. just tell me from the begining. should i have to do the SDK or device driver programming. so where to start.i really need help these days so i am looking forward to you people for some tips.
|
|
|
|
|
I'm trying to understand what you are trying to do.
1. Capture a packet.
2. Modify the data in that TCP or UDP packet.
3. Send the modified packet on its way.
Is this correct?
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
yeah correct i want to do the same thing actually i want to make my encryption algorithm and apply on the data field of the UDP and TCP packets in wireless packets. can you tell me or guide me stepwise what should i do . main thing is that i want to do it in vb.net. lookiing forward to you.
|
|
|
|
|
The obvious question is why don't you encrypt the packets at source rather than in transit? (by "in transit" I mean that after the process that is sending the packets has created the packet but before the packet has left the PC) I am assuming that you did not create the process that is sending or receiving the data.
I think what you need to look at is something like an NDIS hook - which is effectively a kernel mode device driver that hooks into the network layer just as the packets are entering/leaving the PC. There is a solution out there that will allow you to create such a hook and pass it into something that isn't a kernel mode process (like VB.NET). However, I don't recall what it is called off the top of my head. (I'll get back to you on that). If you don't want to use that solution then I think you are going to have to create your own kernel mode device driver which most definitely cannot be written in VB.NET.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
What your thinking of is an NDIS Intermediate Driver. These things slide in between the miniport and protocol drivers.
For original poster:
Docs on NDIS Intermediate drivers start here[^]. Your best best is to write the NDIS driver in C++. That'll save you time of recoding all of the structures, constants and function headers. You'll be doing this for about 3 dozen functions and structures. On top of that, you'll have a VERY difficult time debugging this thing unless your up to speed on debugging kernel mode drivers...
RageInTheMachine9532
|
|
|
|
|
Dave Kreskowiak wrote:
What your thinking of is an NDIS Intermediate Driver
Almost, what I was thinking of was an NDIS Filter Hook Driver[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|
|
i cant understand you what are you saying, you mean that
i should NDIS hook , take its output to manipulate data field of TCP and then again pass this information to the driver? where should i write the code in vb.net which will do the work? is this or else?
can you briefly explain the steps involving in this thing?
and can you refer me some tutorials?
anyways thanks i seached on the google and found some sites on ndis.
waiting...
|
|
|
|
|
babur khan wrote:
you mean that
i should NDIS hook , take its output to manipulate data field of TCP and then again pass this information to the driver?
If you are not generating the packets in the first place then yes - The wording of your previous posts indicates that this is the case. If you are generating the packets there are easier solutions open to you.
babur khan wrote:
where should i write the code in vb.net which will do the work?
It is not something that VB.NET can do by itself, you will need a third party piece of software. NTKernel[^] produce a product called WinPKFilter[^] which might suit your needs.
To connect it to VB.NET you will need to P/Invoke the functions that you are interested in.
babur khan wrote:
and can you refer me some tutorials?
The web site, has a forum for its products and demo software to show how to build applications using its components.
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar
Coming soon: The Second EuroCPian Event
|
|
|
|