|
I have worked around this problem by using the characters 0080 and 0079 from the Wingdings 2 font. I think because these codes are below 127 they do get converted correctly in the pdf.
I have posted this as an issue at https://connect.microsoft.com/SQLServer/feedback/details/618435/reportviewer-does-not-export-pdf-correctly-for-wingdings-fonts.
Tim
|
|
|
|
|
Which version of the dll are you using?
Make sure you use the one that supports SL4.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I would recommend you download Prism from here and upgrade all the Prism files you add a reference to.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I'm sorry - I meant the codeplex site itself.
If you update all your Prism dll references things should work.
Very strange.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I wrote some Template to button object in my xaml.
I want to have image on the button - so i wrote a Template ( code attached )
I want to bind the image source to some variable in the xaml code ( in the c# code ) and i dont know how to do it.
<Style x:Key="MyBtnTmpl" TargetType="Button">
<Setter Property="Template">
<Setter.Value>
<ControlTemplate TargetType="Button">
<Image Source="SomePath.png" Stretch="Fill"/>
</ControlTemplate>
</Setter.Value>
</Setter>
</Style>
|
|
|
|
|
Create property in your code and set Source="{Binding RelativeSource={RelativeSource TemplatedParent},Path=PropertyName}" in Image tag of your control template..
|
|
|
|
|
Dim TextBlock As New TextBlock
Dim Hyperlink As Hyperlink
Dim UrlWithText() As String
Dim SampleText As String = "sample http://google.com text http://yahoo.com"
If Regex.Matches("sample http://google.com text http://yahoo.com", "(\bhttp://[^ ]+\b)").Count > 0 Then
For i As Integer = 0 To Regex.Matches(SampleText, "(\bhttp://[^ ]+\b)").Count - 1
Hyperlink = New Hyperlink() With {.NavigateUri = New Uri(Regex.Matches(SampleText, "(\bhttp://[^ ]+\b)").Item(i).Value)}
Hyperlink.Inlines.Add(Hyperlink.NavigateUri.ToString)
AddHandler Hyperlink.Click, AddressOf hyperLink_Click
URLWithText = Regex.Split(SampleText, Regex.Matches(SampleText, "(\bhttp://[^ ]+\b)").Item(i).Value)
Try
TextBlock.Inlines.Add(URLWithText(0))
TextBlock.Inlines.Add(Hyperlink)
TextBlock.Inlines.Add(URLWithText(1))
Catch
Finally
SampleText = TextBlock.Text
End Try
i += 1
Next
End If
Grid.Children.Add(TextBlock)
This is my code. This code changes the text in the URL, gives HyperLink.
"Sample http://google.com text http://yahoo.com" in
http://yahoo.com and http://google.com should be changed to a hyperlink.
But.. This is not work.
It return..
(When the URL contains two)
sample http://google.com text http://yahoo.com
or
(When the URL contains one = "sample http://google.com text")
sample
(http://google.com text is not showin).
How can fix this code? or... another way?
|
|
|
|
|
Hi all,
I have written a .Net desktop application whose UI is completely written in WPF. The application works fine on my dev machine (Windows XP).
But when I tried to run my application on a fresh VISTA machine, I could not run it. I got a message that application fails to start (kind of message).
And when I run my application on VISTA machine which already have Visual Studio 2008 installed on it, my application runs without any problem.
Can somebody let me know please what should do before running my application on a fresh VISTA (or Windows7) machine? Am I missing some .net dlls/assemblies which should be copied on a fresh machine before I run my application there?
I am also creating installer of my application. If there is something else that I should take care of while installing a .net/WPF application, please let me know.
Regards
Aseem Sharma
|
|
|
|
|
Check if you have the appropriate versions of the framework on the Vista machine.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
I need to create table that all ListViewItem of this table will be build hold
1. Image
2. Text
3. Button
How can i do it ?
|
|
|
|
|
This[^] article is not Silverlight but it might just help you.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Its not in WPF - its in simple winform !
|
|
|
|
|
Use a DataTemplate for the ListViewItem, and populate it with the the items you are interested in. Obviously, these items would have to be bound items.
|
|
|
|
|
I am having serious problems with the inconsistency of the development environment and want to know if it is just me. Some of the symptoms during development are;
An async call will work perfectly and then return server not found.
A method that worked 5 minutes ago fails with a spurious message then works when I restart the app again. This is a waste of endless hours as I cannot trust the IDE to be consistent.
An Async/completed pair will work if I follow through the structure of the app, then the completed method does not get hit when I shortcut the path. This one is really weird!
The WCF service will not update the reference, occasionally I have to delete the service from the SL app just to get a new method to reflect into the reference
Debugging is just insane - I either need a third party app or a winforms client to debug an asynch service.
Combo boxes are a complete PITA, I am astonished we have reached release 4 and these are such a disaster.
The combination of the above means that productivity is about 10% of what I can do with winforms, even with a WCF service. I have the feeling I may have made a complete blunder recommending Silverlight.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Yes, it's just you...
No, seriously, I have exactly the opposite problem - working with winforms is a torture for me, while SL and WPF seems to go smoothly. I guess it's just the matter of personal preference - everybody has to find at least 1 technology to hate.
|
|
|
|
|
Mycroft Holmes wrote: Debugging is just insane - I either need a third party app or a winforms client to debug an asynch service.
*Cough*Use Attach to running process to debug - it's a lot easier.
|
|
|
|
|
Well....things are not this bad.
It's just you.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
modified on Monday, October 11, 2010 11:52 PM
|
|
|
|
|
Abhinav S wrote: Well....things are not this bad.
Oh yes they are, and then we have some stellar decisions from IT, they have decided that remote sites will have to access the systems via citrix.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
Mycroft Holmes wrote: they have decided that remote sites will have to access the systems via citrix.
Intersting. We too had a similar issue with a client.
The client had to run SL apps on citrix.
Still not found a workaround.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Mycroft Holmes wrote: The WCF service will not update the reference, occasionally I have to delete the service from the SL app just to get a new method to reflect into the reference
Yeah, that happens to me a lot as well - more so in WPF, but occasionally in Silverlight as well.
.45 ACP - because shooting twice is just silly ----- "Why don't you tie a kerosene-soaked rag around your ankles so the ants won't climb up and eat your candy ass..." - Dale Earnhardt, 1997 ----- "The staggering layers of obscenity in your statement make it a work of art on so many levels." - J. Jystad, 2001
|
|
|
|
|
I yet to create a WPF app, working with SL is slowly getting better as I start to find the gotchas. Figured out another one today, where the completed event is not being hit, it is just AFTER the other events have been completed.
I was impressed by the SL out of the browser, right click on the app in the browser and install, it copies the xbap to the local drive and it look good without the browser visual overhead.
Never underestimate the power of human stupidity
RAH
|
|
|
|
|
I have two comboboxes on my view. One is for categories,and one is for subcategories belonging to categories.
So the data might look like this:
Category-
Fruit
Vegetable
SubCategory-
Apple
Orange
Carrot
So what I want is the second combobox to display only carrot when the user chooses vegetable, and apple, etc when they choose fruit.
The relationships are set up in the database and my only issue is the event driven binding. When the window loads the view model I load the categories, but not the subcategories because I don't know which ones to load until the user selects a record from a listview.
So my question is twofold:
1. From the view how do I trigger the databinding of the subcategory combobox in the event that the listbox item is changed.
2. From the view how do I trigger the databinding of the subcategory combobox in the event that the category combobox selecteditem is changed.
This is the datasource for the subcategory combobox.
public ObservableCollection<Defect> AllSubCategories { get; private set; }
private void CreateAllSubCategories(int categoryId)
{
var query = _dc.subCategories.Where(subcategory => subcategory.categoryId == categoryId);
var allDefects = query.ToList();
AllSubCategories = new ObservableCollection<SubCategory>(allSubCategories);
}
Cheers, --EA
|
|
|
|
|
This[^] thread how we can achieve this using Element binding and the selectedvalue.
The funniest thing about this particular signature is that by the time you realise it doesn't say anything it's too late to stop reading it.
My latest tip/trick
Visit the Hindi forum here.
|
|
|
|
|
Thanks for the link, it was not exactly what I was looking for but it did lead me to a lot of interesting reading. As it turns out, all I really needed to do was invoke the OnPropertyChanged event for my Subcategory Observeable collection to update the UI after updating the Category observeablecollection selected item.
Cheers, --EA
|
|
|
|
|
i am mca fresher student please give information about silverlight in asp.net
|
|
|
|