|
You're welcome and well done
|
|
|
|
|
Hello,
I am using crystal report 2008 to generate report.
I have gathered some data programmatically to display in columns. I using sub reports for each column and i can display the data simply as columns.
How can i give a data grid layout in report to display the data?
I should be able to:
1). Merge header row if more then one columns are associated under same header.
2). The sum or total value of the column should be displayed in dedicated row for Total rather then just at the end of column.
I am very new to crystal report and trying learn it.
Thanks a lot.
|
|
|
|
|
The help of CR 2008 is your best friend.
1) I am not sure I understand what you meant with this one but I am confident that it can be done...
Check for Cross-Tabs and see if it helps.
2) For this one check for Running Totals in help file.
Good luck,
Always keep the Murphy Rules in mind!
|
|
|
|
|
Hi Friends,
how to create 30day trail application using visual studio deployement tools.if possible please send any sample code for that.
Can i use registry entries for creating trail version?
Thanks.
|
|
|
|
|
The simplest way would be to stored the installation date in the registry.
Then every time your application runs, just retrieve the date and compare it against the current date. If it's greater than 30 days, display a message and close the application.
Obviously it depends how secure you want to be, the above could be got around quite easily by the user just deleting the registry key - but most users wouldn't know how to do this, so it's probably ok for about 95% of the users of a general app. If you want to be more secure, you could consider encrypting the registry key so they can't change it, and deny access if it doesn't exist.
(It would probably be better to use isolated storage rather than the registry, using the registry is considered bad practise these days)
Or to be really secure, consider a 3rd party product. Just google, there are loads.
[BTW: trail trial]
Simon
|
|
|
|
|
hi
thanks for your reply.can u send any sample code or any procedure to encrypt registry entries?
|
|
|
|
|
|
Thanks Simon,
Now i got complete idea on how to create trail version application.
Thanks for sharing your great experience with.
|
|
|
|
|
You can use numerous free key generators for your application. I guess these keys can be configured to a time limit. I have seen apps that have some keys called trial version keys and some keys called full version keys.
Otherwise you can encrypt the date of installation using an algorithm, and accordingly decrypt that date when your app starts. If the key doesn't exist (which could mean the user deleted it), u can display the error message.
-------------------------------------------
It's code that drives you - Shyam
|
|
|
|
|
Hi,
can you send any sample code?
|
|
|
|
|
I need a source code to print a table [or database table] in dot matrix mode using .net.
I want to print the table in this form
Header
-----------------------------------------------------------------------------
S.No. Name Address Telephone Xyz
-----------------------------------------------------------------------------
1 | xyz | djfhjksdhf |94875893475 |89475895
2 | abc | gfhjhjhjhj |94875893475 |89475895
3 | adad | uhy56fbvbn |94875893475 |89475895
4 | afg | nhgnhnhn h |94875893475 |89475895
please help me.its urgent
Thankq
|
|
|
|
|
Dot matrix mode? Do you mean you want to print a table, with all those text neatly aligned?
You'll need a fixed-sized font for doing that. Try a textbox and set the Font to "Courier New".
|
|
|
|
|
thanq for u r rply.
I too dont know the exact format of dot matrix mode or dot matrix print.
all that i want to print the table in this format.
Header
-----------------------------------------------------------------------------
S.No. Name Address Telephone
-----------------------------------------------------------------------------
1 | xyz | djfhjksdhf |94875893475
2 | abc | djfhjksdhf |94875893475
3 | efg | djfhjksdhf |94875893475
4 | 123 | djfhjksdhf |94875893475
Thanq
modified on Wednesday, October 22, 2008 3:43 AM
|
|
|
|
|
Like this?
---------------------------------------------------
S.No. Name Address Telephone
---------------------------------------------------
1 | xyz | djfhjksdhf |94875893475
2 | abc | djfhjk |12345678905
3 | efg | djhf |94875893475
4 | 123 | djfhjksdhwfsdf |23456789005
If you simply want the table printed (in the format you typed), then use a fixed-size font. The type of printer doesn't matter in that case.
There is no "dot matrix" format. It's a printer from the past. I guess that you just want to print plain text, in a table-layout.
|
|
|
|
|
exactly i want in that format only.what exactly u mean to say fixed size font.
and is the print code same for both dot matrix printer and normal printer.
to get those dotted line i have to set any option or can i get those dotted lines for normal printer also.
thnq
|
|
|
|
|
This is your table in a variable-width font:
---------------------------------------------------
S.No. Name Address Telephone
---------------------------------------------------
1 | xyz | djfhjksdhf |94875893475
2 | abc | djfhjk |12345678905
3 | efg | djhf |94875893475
4 | 123 | djfhjksdhwfsdf |23456789005
This is your table in a fixed-size font:
---------------------------------------------------
S.No. Name Address Telephone
---------------------------------------------------
1 | xyz | djfhjksdhf |94875893475
2 | abc | djfhjk |12345678905
3 | efg | djhf |94875893475
4 | 123 | djfhjksdhwfsdf |23456789005
In a fixed-size font, all the characters have the same width. That has the advantage that all the texts are nicely aligned.
sravanthi.M wrote: and is the print code same for both dot matrix printer and normal printer.
Yup. One just "prints", and the printer-driver for Windows does the rest. It won't matter for your program what kind of printer is attached.
sravanthi.M wrote: to get those dotted line i have to set any option or can i get those dotted lines for normal printer also.
Those dotted lines only appear on vertical lines on a Matrix-printer, and they'll only be visible on matrix printers with 9 needles; those with 24 needles give the illusion of a 'real' line.
If you really, really need to have it look like it has been printed on an ancient machine, then by all means, go out and buy a cheap matrix printer. In all cases, try to avoid the dotted lines whenever possible. It looks dirt-cheap and it would be expensive to emulate on a laser-printer.
|
|
|
|
|
thanq very much 4 ur rply.
Actually i have a table with solid lines and i want that table to print in that format[with dotted lines as i posted previoulsy].using normal printer.
thnq
|
|
|
|
|
That's going to be hard to emulate. Your best bet would be to draw your information to a bitmap (Image). I'm not going into detail as that would consume too much time, but in general;
You can use the .DrawText() method to draw your text. Once that works, you can add the horizontal lines. These should not be dotted, if the result should look like it's been printed on a Matrix-printer. The horizontal lines should consist of either 9 or 24 dots. I guess that you'll need the 9-point version.
I do think that this solution is uncalled for, and it will get you into more trouble than it's worth.
|
|
|
|
|
ok..
thx alot for u r replies.it helped me alot.
|
|
|
|
|
sravanthi.M wrote: and is the print code same for both dot matrix printer and normal printer.
The answer is yes and no.
Yes: If you are just issuing a "print" command from anything above a semi-intelligent terminal (a PC, for example), then the entire operation would be taken care by a printer driver. There will be no difference in this case.
No: If your code is going to run on a semi-intelligent or a dumb terminal, then there may be no 'broker' between your code and the actual device to shield you from the boiler-plate stuff. You will then have write code to incorporate the appropriate ESC sequences[^] of the printer attached. As you are talking about dot matrix printers, generally they must fully comply with the EPSON escape sequences (the standard). Mind you that these sequences may differ from one printer to another, depending on what kind of printer is it (thermal, dot matrix, laser, etc.,). So, you will have a separate "print" function for every type of printer that the program may have to work with.
If your program will be running in a dumb to semi-intelligent terminal AND has to work with multiple printers, then it may not be a very pleasant experience to write the code for it.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
|
You are welcome.
May I kindly ask you to avoid using SMS language (like PLZ, THX, U, R). It irritates a majority of the grown-ups. I will excuse your brevity if you had posted this from a handphone.
It is a crappy thing, but it's life -^ Carlo Pallini
|
|
|
|
|
ok sorry for your INCONVENIENCE.
Thank you
|
|
|
|
|
sravanthi.M wrote: u r rply
"you are Ripley"?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Hi,
How can the signal strength, MAC address and related information be obtained? (both connected and NON-connected APs)
I tried to use WMI, but it always returned garbage MAC addresses.
Please help!
Thanks!
|
|
|
|