|
|
Hi.,
How to print a crystal report in a dotmatrix printer using vb.net code and printing should be fast?
Any ideas...
Thanks & Regards
Raj
|
|
|
|
|
hi Raj
You can use 12dpi fonts, all your crytal report contents to be printed should be in 12 dpi font.
These fonts are added to windows fonts once you install Dot matrix printer drivers.
if these fonts are used printing will be faster compared to windows fonts
cheers
saleem
cc
|
|
|
|
|
I would like to know if is there any parameter which let me ask for confirmation of the Mail arrival using System.Net.Mail and the sender SMTPClient.
modified on Thursday, November 19, 2009 7:47 AM
|
|
|
|
|
This is a programming question and doesn't belong in the Lounge. Try this forum instead. Either that, or Quick Answers.
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
You need to refactorize the incoming param list, and possible invoke the method if concurrency is required, also create a method extension this will help during execution of the object.
Hope this helps. Further help can be found in the correct programing forum - which I'm sure you will find - assuming you have the aptitude to program computers.
|
|
|
|
|
Norm .net wrote: You need to refactorize the incoming param list, and possible invoke the method if concurrency is required, also create a method extension this will help during execution of the object.
Excellent!
If the above statement does not qualify you for a position at Microsoft Marketing, then I don't know what will.
http://www.codeproject.com/Lounge.aspx?msg=3276898#xx3276898xx[^]
|
|
|
|
|
While the above suggestions are all perfectly valid, you may want to consider calling Reflector programmatically with parameters for each version of the .Net Framework. This will give you the option of seeing what your options are for a variety of deployment scenarios.
Once you do that, you can then use Reflector to dynamically decompile System.Net.Mail into usable code which you can then modify to suit your needs.
One such modification you'll want to make sure you do before proceeding any further would be to create a hash structure so that you can easily ascertain whether or not you've already sent an email. Naturally, this hash structure should be built to serialize to the hard disk when memory consumption is too high. This will reduce your overall network overhead and improve your performance.
Trust me, your manager will thank you just for following those 3 simple steps.
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
What your a masochist. You've been here a while and asked some sensible questions in the C# forum and suddenly you do a Don Juan and tilt a programming question at the Lounge, consider yourself SMACKED, now go back to the C# forum and ask this question.
Ahhh I enjoyed that, we don't get enough of these misplaced questions any more.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yeah, where have all the good bad members gone?
Visual Studio is an excellent GUIIDE.
|
|
|
|
|
Maybe he was a good member turned bad.
|
|
|
|
|
Ahh bugger CP moved it. They are taking our targets away, I think we need to protest this.....
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Ok, here is the problem that drives me nuts.
I have a datagrid with various data.The first column is the date of the record and it's a string.
The following code gives the error
tempor=Month(dgv1(0, counter).Value.ToString)
On my PC the code works flawlessly.But when i give the application to someone else for BETA testing, it produces the error.
Does it make sense to you ?
I also tried all the variation to the code, i could think of, like using cdate and cstr functions, changing the type of the tempor variable to date, string, using the .string or not at the ende of the code, to no avail
|
|
|
|
|
Johnkokk wrote: Does it make sense to you ?
Not exactly; your title says you are converting from the string "18/8/2009", but your code is converting something ToString() . Can you clarify a bit more what is in dgv1(0,counter) ?
|
|
|
|
|
The field of the datagrid contains "18/8/2009".This is a string.
I am trying to get the month part of this date.
On my computer whatever i try WORKS.
On the other PC whatever i have tried, DOES NOT.
Even if i don't put the .string, DOES NOT work on the BETA tester.
To make it simple.How do i get the month part of the above field to use as an index in an array ?
|
|
|
|
|
Τhe problem seems to be the regional setting of the other pc, which are different than mine.If they are change to the same as mine, it works
Hmmmmm
|
|
|
|
|
you could split the string ( string.Split() ) and then take the second index of a string array, then you have the number of the month, maybe you could work with that?
Here we rest... So why not make the best of it?
|
|
|
|
|
Not a good answer, study DateTime structure.
|
|
|
|
|
it seems you don't have a clue.
the only thing that could go wrong in tempor=Month(dgv1(0, counter).Value.ToString) is a NullReferenceException due to dgv1 or Value being null.
if there is a problem, it is bound to be in a different line. Look at the entire exception.ToString() output, tell your IDE to show line numbers, and get the line at fault.
Most likely it is about date formatting. The first thing about it is you have to decide whether you want a user-selected format (through Regional Settings), or a fixed format (specified explicitly in your conversions, see the Parse/TryParse method overloads that take explicit format info).
Luc Pattyn [Forum Guidelines] [My Articles]
I only read code that is properly indented, and rendered in a non-proportional font; hint: use PRE tags in forum messages
|
|
|
|
|
Your problem is that you are storing your dates as strings. THIS IS WRONG AND VERY STUPID. This is error number 1 when a newbie starts working with dates. You should IMMEDIATELY go back and change your date storeage and manipulation from string to datetime.
Dates are subject to the computers cultureinfo, this means if the user has not changed the culture of the computer from the default american format (stupid friggin mm/dd/yyyy yank format) your 18 is being read as a MONTH, If it was a datetime format you would not have this problem.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Although i am not exactly newbie at programming, i admit i am relatively new to .net framework thing.
As i said on my second post, the problem was indeed the regional settings.The user had set them to American, and so it was reading 18 as Month, thus the error.
The reason i didn't use datetime in the field, is because the data are stored in a MS ACCESS database, and it was giving all sorts of problems trying to use the field.So many different bugs i don't even remember.
So i made them strings.
However i might give it one more shot to see what happens.
|
|
|
|
|
I would concur with the comments from Luc & Mycroft. Do not store dates and times as strings, it just leads to exactly this sort of problem. A DateTime value is universal and can be displayed in whatever format is required, and in many cases converted to a non-Gregorian calendar.
|
|
|
|
|
Johnkokk wrote: However i might give it one more shot to see what happens.
I would strongly recommend trying. You will almost certainly run into malformed dates already in the field which will produce error but then you will be fixing your data
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
how to read sms from any gsm mobile. anyone help me
|
|
|
|
|
Using what? c#? vb?W hat have you tried? Have you even looked on google?
Bob
Ashfield Consultants Ltd
Proud to be a 2009 Code Project MVP
|
|
|
|