|
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
|
|
|
|
|
Thank you!!
Do you mean I have to make change in Webservice ??
|
|
|
|
|
Deserialize the result from the webservice to a .Net class:
Newtonsoft.Json.JsonConvert.DeserializeObject
It's a Nuget package you add to your project to get the dll references.
"(I) am amazed to see myself here rather than there ... now rather than then".
― Blaise Pascal
|
|
|
|
|
What Gerry said.
Alternatively the agent you're using to make the request (such as HttpClient) can be configured to send custom accept headers, and if the web service supports it you can request the data in XML form instead, which was the second part of my suggestion.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
As I am using ASMX I think I cant configure to return XML. I have JSON data returning. Is there any possibilities to consume JSON from webservice with an Async call.
I am new to C# and Xamarin.
|
|
|
|
|
Yes, as I said and Gerry clarified. If you need help with the nuts and bolts we can provide that, but with the information you've given we don't even know how you're consuming the service, let alone any implementation details.
"There are three kinds of lies: lies, damned lies and statistics."
- Benjamin Disraeli
|
|
|
|
|
Thank you,
I was trying to consume ASMX web service as instructed in Xamarin ASMX
Consuming an ASP.NET Web Service (ASMX) - Xamarin[^]
I could make out the expected output was not as per the standards are given SOAP 1.1. So I have to modify the ASMX service
Thank you again
|
|
|
|