Problem solved (not really). When I export to Excel the whitespaces appear so it was just the HTML rendering that fooled me.
If somebody finds a solution to this I'm still interested in knowing it. There are times you want to control screen rendering also.
[elephant2]
graabein
Incredible. I even tried selecting everything into a single text column from the database but SSRS still trimmed multiple whitespaces within the table cell! Somebody shoot me! LOL.
[elephant2]
graabein
Hi, I have to create a text file that outputs data in certain chuncks like this:
Name, 10 chars [1-10]
Number, 2 chars [11-12]
Code1, 3 chars [13-15]
Code2, 3 chars [16-18]
I put all the fields from the dataset next to eachother in a single table cell and the idea is to let the user export to...
I think I did it! Check this out:
select Work.Code, count(*) from (
select Code1 as Code from table1
union all
select Code2 as Code from table1
) as Work
where Work.Code is not null
group by Work.Code
What do you think?
[elephant2]
graabein
Hi, I have a sort of stupid table structure on the project I inherited. It's a list of what work was performed that uses codes like this:
CustomerID | Date | Code1 | Code2 | Code3 | Code4
I want to know all work that was performed for a certain period and thus need to count the distinct codes...
Thanks Joe, I'll update my code with that. Another thing, can I get the line number with Erl?
error_handler:
Dim errNum As Long
Dim errDesc As String
Dim lineNum As Long
errNum = Err.Number
errDesc = Err.Description
lineNum = Erl
[elephant2]
graabein
Well I'm trying to write some tests to run on the code (not written yet). They're not registrations of the same thing, they're a series of events connected with a bigger operation so we need to know what happened when for later on. Some of these events have to be in the proper order.
Thanks for...
Hi, I'm looking for some advice on cornering an annoying bug I cannot recreate! I'll just paste the code here:
Public Sub CreateView( _
lv As ListView, _
lvTemp As ListView, _
dtFromDate As Date, _
dtToDate As Date, _
Optional sFilter As String = "" _
)
Dim rs As New...
Here is what I've got so far but it's probably not the best way to go about this. Suggestions are welcome!
private bool IsSorted(ObservableCollection<CustomEntity> coll)
{
List<DateTime> unsorted = (from n in coll
where n.EventDateTime > DateTime.MinValue
select...
Hi, I'm pretty new to C# .Net 3.5 so go easy on me... I want to test if a list of dates is sorted.
I use LINQ to extract the DateTime field from a ObservableCollection<T> with either ToArray or ToList. I do this twice, with and without orderby clause.
The (simple?) problem is how do I compare...
Hi, I'm trying to build a setup program for my application.
The Package & Deployment Wizard keeps asking for file "3". When I look at the project references I can see two references to *.DLL\3:
Visual Basic runtime objects and procedures
C:\WINDOWS\system32\msvbvm60.dll\3
Microsoft VBScript...
Yes! I finally found the source of my problems, namely the DefaultCancel property on the user control. That's seven or eights hours I'll never see again.
[elephant2]
graabein
I think I might have used subclassing on the user control or maybe used a picture or a button to get the enter key event.
I tried adding a multiline textbox on the main form and that worked as intended with enter key. In the user control however the enter key does not work on the multiline...
Hello everyone!
I have the strangest problem. In my main form I somehow trap linebreaks in textboxes with MultiLine = True. Problem is I don't know where this code is! It's a pretty old application...
On a new form I added (a dialog box) this input filter trap key magic is non existing...
I think I'll try remembering the previous selected row, do a HideSelection and SelectedItem = Nothing, then reset the selected row while rebuilding (or after) and do HideSelection = False when I'm done.
If that don't work and the selected row jumping still bothers me I'll try your tip [peace]...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.