|
Was there a question in there somewhere?
|
|
|
|
|
"C#" is not a good subject-line; all the posts in this forum are about C#.
newLocation = "C:\\Users\\" + server + "\\Videos Sorry, that is not a server, but a user.
..if I understand you correctly, you want to convert the next file in that folder? Get a list of files, and loop through those.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
And you have a question ? a problem ?
We do not do your HomeWork.
HomeWork is not set to test your skills at begging other people to do your work, it is set to make you think and to help your teacher to check your understanding of the courses you have taken and also the problems you have at applying them.
Any failure of you will help your teacher spot your weaknesses and set remedial actions.
So, give it a try, reread your lessons and start working. If you are stuck on a specific problem, show your code and explain this exact problem, we might help.
As programmer, your job is to create algorithms that solve specific problems and you can't rely on someone else to eternally do it for you, so there is a time where you will have to learn how to. And the sooner, the better.
When you just ask for the solution, it is like trying to learn to drive a car by having someone else training.
Creating an algorithm is basically finding the maths and make necessary adaptation to fit your actual problem.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
I would encourage to use Path class for any path related coding in C#
"C:\\Users\\" + server + "\\Videos\\Matchbox\\keeper starts(" + filecount.ToString() + ").mp4";
|
|
|
|
|
I am developing an English vocabulary related project. Is there any open source service available, where I can consume that to get the meanings for words.
Srinubabu Ravilla
|
|
|
|
|
What does this have to do with C#?
I'd suggest you post it as a QA question: [^] where it will reach a wider audience.
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
|
|
|
|
|
I need C# supported service. So that's why I asked this here. Thanks for your suggestion. I'll post it as a question.
Srinubabu Ravilla
|
|
|
|
|
The language doesn't matter at all. There's no such thing as a service that "supports C#".
It's always the other way around. Can you write code that properly consumes the service?
|
|
|
|
|
Do you mean a free service that you can use to get the meaning? In that case it doesn't matter what language it is written in as you can consume it in any client.
As for open source code that provides exactly that - the answer is "probably not". A webservice is quite simple to write, and you are basically asking for a lookup service. Most tutorials will already give you that basics.
Only thing you'd need to acquire is a free dictionary. You could use the wiktionary for that.
You'd be getting defintions of the words by the way; meaning of the word may vary by locale and context and cannot yet be determined by machines.
Bastard Programmer from Hell
If you can't read my code, try converting it here[^]
|
|
|
|
|
I have an application that creates an Excel workbook from a template. After the workbook is created I populate each Worksheet. I'm attempting to make the cells that contain headers and other data describing text read only.
Here are my latest two attempts:
Worksheet ws = m_wkbk.Sheets[1];
ws.Activate();
ws.Range["A1", "E1"].Style.Locked = true;
Range range = (Range)ws.get_Range(ws.Cells[1, 1], ws.Cells[1, 5]);
range.Locked = true;
|
|
|
|
|
Excel only locks the locked cells when a password is put on the sheet.
Every cell has the Locked attribute set on new sheets, you unlock cells you want to allow users to change then set a password on the sheet to protect the locked cells.
|
|
|
|
|
Correct.
There are two kinds of people in the world: those who can extrapolate from incomplete data.
There are only 10 types of people in the world, those who understand binary and those who don't.
|
|
|
|
|
A sheet can be protected without password.
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
My apologise, your right, I just never used it that way always had passwords.
|
|
|
|
|
And what is the result of this ?
ws.Range["A1", "E1"].Locked = true;
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
It runs but has no impact on the launched sheet.
|
|
|
|
|
dpasswat wrote: It runs but has no impact
What means: "no impact" ?
Does it set the locked cell property or not ?
Patrice
“Everything should be made as simple as possible, but no simpler.” Albert Einstein
|
|
|
|
|
to make the Locked-Attribute working you have to protect your Sheet.
For example :
ws.Protect DrawingObjects:=True, Contents:=True, Scenarios:=True
|
|
|
|
|
Thanks for all of the input. I ended up adjusting the protection settings in a template after locking the individual cells. It works like a champ now.
|
|
|
|
|
I want to design new third part software about pdf files because I want to convert pdf files to word files.
I have tried other third part software to support my codes, but everyone third part software can't get the good results that can't convert all of essay in pdf files to word files.
My idea about new third part tools:
First step: Convert to pdf to xml
Second step: Convert to xml to word
When I want to convert pdf files to xml files, I find out a thing that I can't store all of words in pdf files to byte arrays because everyone byte arrays are incorrect so when I want to read xml files and convert xml files to word files, the result is incorrect.
How to read pdf file and store the pdf files to xml files?
|
|
|
|
|
So PDF and word files are already XML, you want to convert from one XML schema to another.
Have a look at iTextSharp.
Also, important point, Office Word 2013+ can parse PDF files natively. Just food for thought.
Edit: I have only ever played with PDF Forms, each of which I've seen is indeed binary-serialized XML, to include signature sections and metadata.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
modified 15-Feb-17 11:49am.
|
|
|
|
|
Nathan Minier wrote: So PDF and word files are already XML
PDF files aren't XML; they're based on PostScript:
Portable Document Format - Wikipedia[^]
"These people looked deep within my soul and assigned me a number based on the order in which I joined."
- Homer
|
|
|
|
|
Thank you for the clarification.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
I have created proxy services by add web reference in my Xamarin.Droid project to access asmx webservice.
Eg: I have a webservice for feature master
when I make a direct request with URL "http://XX.XX.XXX.XXX/tabsaleswithdatasync.asmx/FeatureMaster"
I am getting following info
[{"msg":"","FeatureSlno":"2","Feature":"Fuel Used","DefaultValue":"","FeatureType":"B","Groups":"OverView","GroupOrder":"0","SubGroupOrder":"0","CategorySlno":"2","UtilisationSlno":"1","IconImagePath":"","LowerIsBetter":"0"},{"msg":"","FeatureSlno":"3","Feature":"Seating Capacity","DefaultValue":"","FeatureType":"B","Groups":"OverView","GroupOrder":"0","SubGroupOrder":"0","CategorySlno":"3","UtilisationSlno":"0","IconImagePath":"","LowerIsBetter":"0"}]
I have written my method to get data
EngageWebReference.TabSalesWithDataSync objProxy = new EngageWebReference.TabSalesWithDataSync();
objProxy.FeatureMasterCompleted += ObjProxy_FeatureMasterCompleted;
objProxy.FeatureMasterAsync();
private void ObjProxy_CityMasterCompleted(object sender, System.ComponentModel.AsyncCompletedEventArgs e)
{
// here I am getting XMLException as data at the root level is invalid. line 1 position 1.
throw new NotImplementedException();
}
Can anyone suggest how to make async call get the desired result into a variable eg:
List<featuremaster> res = new List<featuremaster>
res = GetFeatureMasterList();
|
|
|
|
|
Yeah...just a guess but your error is most likely related to the data being in JSON rather than XML.
Try parsing with Newtonsoft, or pass an "Accept: application/xml" header.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|