|
hi
is it possible to make setup installation for WebService ?
that the installation will make the Virtual directory + the IIS setup + all the Permissions
if it possible, how to do it ?
thank's in advance
|
|
|
|
|
Yes. Use a setup creator such as Wix. There are plenty of tutorials on how to do this scattered around the web.
|
|
|
|
|
What reference assembly I need to add to achieve word automation, a week back sysadmin install office 2010 bundle. Though I do not use C# at my work. and haven't code since last 3 yrs. I am trying to code some internal utilities for team and myself.
TIA
|
|
|
|
|
Microsoft.Office.Interop.Word
* EDIT *
Also: Here is a sample...
using Word = Microsoft.Office.Interop.Word;
Word.Application _wordApp = new Word.ApplicationClass();
object nullObj = System.Reflection.Missing.Value;
object readOnly = true;
object visible = false;
object fileName = "some file name";
object saveChanges = Word.WdSaveOptions.wdDoNotSaveChanges;
Word.Document _doc = _wordApp.Documents.Open(ref fileName, ref nullObj, ref readOnly,
ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj,
ref nullObj, ref visible, ref nullObj, ref nullObj, ref nullObj, ref nullObj);
_doc.Activate();
_doc.PrintOut(ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj,
ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj,
ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj, ref nullObj);
modified on Thursday, March 17, 2011 4:32 PM
|
|
|
|
|
Thanks Tim,
I am missing Microsoft.Office.Interop.Word in MSVC 2005, COM assembly listing.Google did not gave me any good results.
|
|
|
|
|
I'd guess you have to download them. Maybe this Google result[^] helps.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
What's wrong with this????
The date string I'm trying to parse is initially in this format - "date: wed, 16 mar 2011 17:09:37 -0700". I pull off the "date: " portion and remove the comma. That results in "wed 16 mar 2011 17:09:37 -0700".
Here's my code:
string[] words = Line.Split(' ');
string dtstring = words[2].PadLeft(2, '0') + " " + words[3] + " " + words[4] + " " + words[5];
DateTime datetime = DateTime.ParseExact(dtstring, "dd MMM yyyy hh:mm:ss", CultureInfo.InvariantCulture);
I'm getting "String was not recognized as a valid DateTime."
Help!
Everything makes sense in someone's mind
|
|
|
|
|
have you looked at the value of dtstring at all?
please check your words indexes, they seem all wrong.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Yes I have. dtstring contains "16 mar 2011 17:09:37"
Everything makes sense in someone's mind
|
|
|
|
|
there seems to be something inconsistent in your posts.
anyway, two comments:
- maybe, I don't know, ParseExact needs month names in the expected casing (Mar)
- are you aware ":" is not just a colon in DateTime formats, it really means "whatever the separator is for time parts on your system"?
So try with a modified dtstring and/or read the documentation!
ADDED: and then there is HH versus hh of course.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
Try HH instead of hh...
DateTime datetime = DateTime.ParseExact(dtstring, "dd MMM yyyy HH:mm:ss", CultureInfo.InvariantCulture);
I may or may not be responsible for my own actions
|
|
|
|
|
VOILA!! That did it
Thanks
Everything makes sense in someone's mind
|
|
|
|
|
So it was a 'Good Answer' then
I may or may not be responsible for my own actions
|
|
|
|
|
Good job. I should have refreshed the page before posting the answer.
|
|
|
|
|
I was half expected to see the same thing happen after I hit submit... these kind of posts are always a race against time
I may or may not be responsible for my own actions
|
|
|
|
|
Oh yes. Good catch.
Luc Pattyn [Forum Guidelines] [My Articles] Nil Volentibus Arduum
Please use <PRE> tags for code snippets, they preserve indentation, improve readability, and make me actually look at the code.
|
|
|
|
|
It's HH not hh . You're using 24 hour format, not AM/PM.
|
|
|
|
|
Hello!
I wish to have an icon (Path ) which scales forever until some background operation is finished. I managed to bind a DataTrigger to my dependency property InProgress . However, I want the animation to repeat so I bound RepeatBehavior to InProgress as well. Here I get an exception "'Set property 'System.Windows.FrameworkElement.Style' threw an exception.' Line number '241' and line position '22'.". The inner one is: "Cannot freeze this Storyboard timeline tree for use across threads."
<Path.Style>
<Style TargetType="Path">
<Style.Triggers>
<DataTrigger Binding="{Binding InProgress}" Value="True" >
<DataTrigger.EnterActions>
<BeginStoryboard>
<Storyboard AutoReverse="True"
RepeatBehavior="{Binding Path=InProgress, Converter={x:Static Converters:BooleanToRepeatBehaviourConverter.Instance}}" >
<DoubleAnimation To="0.125" Duration="0:0:0.12"
Storyboard.TargetProperty="(LayoutTransform).(ScaleTransform.ScaleX)" />
<DoubleAnimation To="0.125" Duration="0:0:0.12"
Storyboard.TargetProperty="(LayoutTransform).(ScaleTransform.ScaleY)" />
</Storyboard>
</BeginStoryboard>
</DataTrigger.EnterActions>
</DataTrigger>
</Style.Triggers>
</Style>
</Path.Style>
The exception started to occur after binding the RepeatBehavior . Before doing that, the animation displayed correctly but only once. Note that I have been using the InProgress property for binding before and it worked. The converter:
public class BooleanToRepeatBehaviourConverter : IValueConverter
{
private static readonly IValueConverter instance = new BooleanToRepeatBehaviourConverter();
public static IValueConverter Instance
{
get { return instance; }
}
public object Convert(object value, Type targetType, object parameter, CultureInfo culture)
{
return (bool) value
? RepeatBehavior.Forever
: new RepeatBehavior(0);
}
public object ConvertBack(object value, Type targetType, object parameter, CultureInfo culture)
{
throw new NotImplementedException();
}
}
How to solve the problem?
Thanks in advance!
Greetings - Jacek
|
|
|
|
|
You should have asked this in WPF forum[^] dude which is appropriate one.
|
|
|
|
|
|
|
|
Thanks a bunch jerk, now I can't delete my message until you delete yours. Did you not see my comment to Jacek? The reasons I gave my original response were entirely justified because of the way that the forums are intended to be available for use later on and not just now. Now I can't delete this thread chain, and I have to leave it there to give context.
some_beginner wrote: It is just natural that people ask those questions because they hope that the
professionals here either have been in the same situation and are thus able to
provide a good answer or maybe even a solution
Yes, but in the correct forum, not where whim takes you. Honestly, it's as if you don't care that other people are meant to be able to search for solutions to problems that have been solved before.
|
|
|
|
|
I had to read your message three times before I could beleive you'd written in in seriousness.
Given your total two/three year contribution to the site is five messages, two of which can be seen in this thread, do you think it is appropiate that you should tell someone who is a regular (and a pretty decent and helpful chap to boot) what to do here? The OP posted on the wrong thread, it dimishing the usefulness of this site as a research tool.
Two other aspects of professionalism you missed: Getting your facts straight and not hurling insults.
Oh, and if you can't stand the occaisional "acid" comment get out of IT now, you'll never succeed.
|
|
|
|
|
Keith Barrow wrote: if you can't stand the occaisional "acid" comment get out of IT now
5!
Real men don't use instructions. They are only the manufacturers opinion on how to put the thing together.
Manfred R. Bihy: "Looks as if OP is learning resistant."
|
|
|
|
|