|
pdnet wrote: Sr. Software Developer
|
|
|
|
|
Look it up in an ASCII table ffs.
If you really are a senior software developer, this should be a very basic thing for you to find
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Paul Conrad wrote: If you really are a senior software developer, this should be a very basic thing for you to find
Not to mention that he should already know the most basic things about the ASCII character set, like that the letter A has the character code 65 (0x41). From there you can count on your fingers to get to the letter N...
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Guffa wrote: he should already know the most basic things about the ASCII character set
You'd think so. I don't know about how computer science/programming is taught where ever he was introduced, but that should have been one of the first things covered.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
You are not understand my problem.
I am Serching For N not N
Please tell me the Ascii for underline+N
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
There is no such character in the ASCII character set. Styling of the text is not specified in the character itself.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
So, How can I do that.
If I want to show ' Enter '
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
If you are trying to show Enter in something like a button, you need to have a & before the character you want to underline. Be more clear as to what you are doing.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I want to Show Enter in the Flex Grid and the Value Coming from the database.
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
Well, I wish you luck. It's late here and pretty drained
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
Where do you want to show that? How the text is styled depends on where and how you output it.
pdnet wrote: If I want to show ' Enter '
There is no N in " Enter "...
The text looks like how you show that a control has an accelerator button. Is that perhaps what you are really looking for?
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
There is no Ascii value for the underline+N
Arindam Banerjee
Sr. Software Developer
Rance Computer Pvt Ltd.
Kolkata (India)
|
|
|
|
|
No there is no ASCII for such a thing. Like Guffa said, ASCII codes do not extend to styling and formatting.
"The clue train passed his station without stopping." - John Simmons / outlaw programmer
"Real programmers just throw a bunch of 1s and 0s at the computer to see what sticks" - Pete O'Hanlon
"Not only do you continue to babble nonsense, you can't even correctly remember the nonsense you babbled just minutes ago." - Rob Graham
|
|
|
|
|
I have been using crystal reports in visual studio 2005-2008 and have experienced this in both versions.
We have a few reports that when we print them from our application by passing the crystal viewer but still using the crystal reports print method, that it will print out in portrait instead of landscape. We have tried all options that we can come up with to resolve this in the code(changing the option on the report manually setting the layout to landscape etc.) but it still prints in portrait. What makes this even stranger is that when we print to the crystal reports viewer and then print from there it works as expected. Also this seems to only happen on Sharp copiers. I have contacted Sharp with no luck they say that it is a Crystal problem and that they have never heard of this and to contact Crystal which we did with the same answer it must be a Sharp issue. Any insight into why this is happening would be much appreciated because we really don't want to replace 5 copiers and we don't really want to rely on a work around that we have to train each user on for these reports.
Humble Programmer
|
|
|
|
|
Anyone have any ideas? Has anyone had with trouble with any printers?
Humble Programmer
|
|
|
|
|
Can you post your print code pls (the code that doens't work)
Are you using a printdialog?
I'v had several print problems with CR in the past (among wich was scalling and such), and when contacted CR about it I got a little bit more insight into how it works (still a pain in the ass but...)
Basicly CR doesn't really do much about the printing, they leave it up at the OS. I do have some ways to do this but I'm currently not able to access the code (I will be in a couple hours)
|
|
|
|
|
Dim tReportName As String = String.Empty
Dim bCreateSchema As Boolean
Dim tSQL As String
Dim pDialog As New PrintDialog
If cboPrintTo.Text = "Printer" Then
If Not fbCrySelectPrinter(pDialog) Then
MessageBox.Show("Print Report Cancelled.", Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Exclamation)
Exit Sub
End If
End If
Dim objReport As New CrystalDecisions.CrystalReports.Engine.ReportDocument
objReport = objcryCLTherapyPrescriptionReferralForms
tReportName = "Therapy Prescription Referral Form"
' set any passed variables
Dim iII As Integer = 0
For iII = 0 To objReport.DataDefinition.FormulaFields.Count - 1 Step 1
Select Case objReport.DataDefinition.FormulaFields(iII).Name
Case "Ref"
If optReferral.Checked Then
objReport.DataDefinition.FormulaFields(iII).Text = "'X'"
Else
objReport.DataDefinition.FormulaFields(iII).Text = "''"
End If
Case "Treatment"
If optTreatment.Checked Then
objReport.DataDefinition.FormulaFields(iII).Text = "'X'"
Else
objReport.DataDefinition.FormulaFields(iII).Text = "''"
End If
End Select
Next iII
'
'bCreateSchema = True ' ***** TESTING ONLY
Dim bResult As Boolean = False
bResult = fbCryPrintPrinter(tSQL, objReport, tReportName, cboPrintTo, pDialog, bCreateSchema)
'
Me.Cursor = Cursors.Default
If cboPrintTo.Text = "Printer" Then
MessageBox.Show("Print " & tReportName & " Complete.", Me.Text, MessageBoxButtons.OK, MessageBoxIcon.Information)
End If
Public Function fbCryPrintPrinter(tSQL, objReport, tReportName, cboPrintTo, pDialog, bCreateSchema)
objReport.PrintOptions.PrinterName = pDialog.PrinterSettings.PrinterName
objReport.PrintToPrinter(pDialog.PrinterSettings.Copies, False, _
pDialog.PrinterSettings.FromPage, pDialog.PrinterSettings.ToPage)
End Function
This is short hand but this is all of the code that is really related to printing.<pre></pre>
Thank you for your response.
Humble Programmer
|
|
|
|
|
programmer_vb.net_c++ wrote: objReport.PrintToPrinter(pDialog.PrinterSettings.Copies, False, _
pDialog.PrinterSettings.FromPage, pDialog.PrinterSettings.ToPage)
you don't pass the page orientation to the report (so he normally takes the one set on the report)
What I do is I use the
system.drawing.printing.printersettings and system.drawing.printing.pagesttings classes
The printerdialog box contains both of these
and the printtoprinter methode of the report accepts these
That way you pass every option set in the dialog box to the report
Hope this helps
|
|
|
|
|
I will give this a try thanks.
Humble Programmer
|
|
|
|
|
hi all,
i want to compare each character of my string variable to all characters of UTF-8 character set(i think there are near about 65000 character). and remove any character of variable which it is not in list of UTF -8 Character set.
anybody have idea that how can i perform this operation efficiently ?
|
|
|
|
|
Your question doesn't make sense. UTF-8 is not a character set, it's an encoding. Read[^]
|
|
|
|
|
sir, whether i can check if the character of any string variable is not in UTF-8 format ?
|
|
|
|
|
OK, you're not getting it. You don't check a String to see if it's encoded using UTF-8. You can check a stream of bytes though. See GetDecoder[^] for an example.
|
|
|
|
|
Rupesh Kumar Swami wrote: i want to compare each character of my string variable to all characters of UTF-8 character set
As already have been pointed out in the thread, UTF-8 is not a character set.
Rupesh Kumar Swami wrote: UTF-8 character set(i think there are near about 65000 character)
The Unicode character set contains more than 100 000 chcaracters.
Rupesh Kumar Swami wrote: and remove any character of variable which it is not in list of UTF -8 Character set.
Here's a method that does that for you:
Public Function RemoveNonUnicodeCharacers(ByVal s As String) As String
Return s
End Function
Strings in .NET are Uncode. UTF-8 is a way to represent unicode characters as a binary stream. So, any character that you have in a string can be encoded into an UTF-8 stream.
Despite everything, the person most likely to be fooling you next is yourself.
|
|
|
|
|
Thank sir, for your information
one more question
How can find ascii equivalent of string which is made of utf-8 encoding? Since this is 8 bit
|
|
|
|