Converting a german text to english text in vb6.0 - vb6

i am a newbie to vb 6.0 ,i want to convert the german text to english text as one of
my requirement can anybody help me with this.
thanks

One way you could achieve this is to create a string resource DLL. Have a look at this article for an example of how to use this. When you have this, you can either make calls to the equivelent of LoadString() in the example for every resource or, alternatively, you could write a control to add to every form that automated this process (i.e. itterate through each control and replace the text based on the locale).

Related

CKEditor and HTML in Xpages

I am understanding this better but still not there yet.
I have a notes document with a rich text field. I want to edit it in Xpages, so that the user can enter text for an email that an agent will generate. The idea is that the user should be able to enter styled text, hopefully including pasted graphics, and this is saved to the rich text field in such a way that a later agent can copy that field to the body of an email.
On the form I have checked the field "Store contents as HTML and MIME.
In the Xpage I have bound the CKEditor directly to the field (can bind it to a scope variable if necessary).
The code in my agent is as follows:
Set rtItmFrm = emlDoc.getFirstItem("Body")
Set rtItmTo = New NotesRichTextItem(mail,"Body")
Set rtItmTo = rtItmFrm.Copyitemtodocument(mail,"Body")
Any further suggestions on reading up on MIME/CKEditor etc would also be much appreciated.
Bryan
=========================================================================
I just discovered how to modify the CKEditor in Xpages (the Rich Text Control). I have the full menu and one or two more things turned out. However, I am really puzzled by how it treats HTML. I would like to put a template for a nice HTML email (like a newsletter). Anything even a little complicated it munges and the output is messed up.
I read enough online to understand that it is not supposed to be a HTML editor, but I am really having trouble getting the results I want. I would love to put some basic skeleton HTML in there, but everything but the simplest code doesn't work.
Is there anyway to import HTML and it not get messed up using this editor?
as Per and Stephan said, Have a look at ACF filtering that is 'server side' (This is not related to CKEditor itself, but it is related to XPages).
If you have a look at the inputRichText control you will see 2 properties.
htmlFilter
htmlFilterIn
These properties determine how to filter Html on the way in to your data, and also on the way out.
This can be used to strip styling out, and also to prevent dangerous tags like some bad code here etc.
By Default the htmlFilter is set ACF (Active Content Filtering) if you look at the default rules, you will see it strips things like 'margin' out.
see /properties/acf-config.xml-sample
There is a filter called 'identity' which means don't filter anything, however beware if you use this you are not protected from and maliciously entered html.
You should look into defining your own set of rules for your ACF filter, this way you can choose which elements to remove. There is a section in Mastering XPages book about this.
If you still have any trouble, then there are some settings in CKEditor config which also control ACF (totally separate to XPages server side)
I don't think CKE changes the HTML, it is the writing back to a RT field.
Try and bind your RichText Editor to a scoped variable instead of a RichText field. This way you have access to the raw HTML and can use that to generate a MIME email. You might want to have a look at Mustache for mail merge.
Use this article series as starter how to prepare CK editor to make this possible.
And as Per mentioned: check the filtering.

How to add a binary file to a datagrid view

im working on a c++ project and i was wondering if i can add the items of a datagrid without using a data base. Using a xxxxxx.dat file. Is that posible?
pd:sorry bout my english, im not an english-speaker.
Create a couple of classes. One to describe a row in the file.
One to open up a list of the above.
add a method to load from the dat file, (and save to it?)
Then just bind your grid to the list class.
Another possible option would be ODBC Text driver, but there area good few ifs and buts around that.

Applescript command to extract template from a powerpoint presentation

I need to extract the template from a powerpoint presentation and apply that template to another presentation.
After my search, I found two commands:
1) get template name of presentation
The above commands gives the template name, but not the path where it is stored. I am unable to find that.
2) apply template presentation file name "Macintosh HD:Users:Shared:Zesty"
The above command applies the "Zesty" design template to the presentation. But again I had no success as I don't know where this design template is stored. After googling I found the location can be: "/Users/sanjeev/Library/Application\ Support/Microsoft/Office/User\ Templates ". But I found no templates there.
So, is there any way to extract the template from a powerpoint presentation and apply that template to another presentation??
Thanks
PowerPoint doesn't store the path to templates in presentation files. There's no need to. It never refers to external templates except when the user/your code applies them. At that point, it stores a copy of the template IN the PPT file.
Extracting a template from the PPT file is simply a matter of opening the file and saving it as a template.
But you don't even need to do that unless you want to. Since every presentation contains its own template, you can apply the template from one presentation to another; no need for an actual template file.
In VBA, you'd do:
ActivePresentation.ApplyTemplate FileName:="[path to file whose template you want to apply"
I don't do Applescript, but it should be possible to translate that.
This might be 10 years late :-) but here is some AppleScript that does it:
-- Create a presentation to write to
set newPresentation to make new presentation
-- apply a template file to this new presentation
apply template newPresentation file name "/Users/martinpacker/Documents/template.potx"
(Obviously I came across this question while looking for an answer myself - and eventually figured it out. It might help someone in another decade or so.) :-)

Separate Content for each different language in joomla

It is possible to get multiple input textareas where I can enter content for each language separately. Is there some kind of extension that enables this. I am a novice at joomla so please help me.
Well, something like
Title(English): <THEN A TEXT BOX HERE>
Title(Other Langauge): <THEN A TEXT BOX HERE>
Content(English):
<THEN A TEXTAREA HERE>
Content(Other Language)
<THEN ANOTHER TEXTAREA HERE>
I am just passing ideas. May be there is something better that can solve my problem. basically, i need to manually enter different content for every language installed. Not through automatic translation. It is not even available...
Have a look at Joomla Translations Manager - we use it on all our multilingual pages and it will help you translate JText::_() strings
As JackJoe said, Joomfish is what you are looking for. http://www.joomfish.net/

Adobe InDesign Server examples

I'm new to Adobe InDesign Server and I'm having a hard time finding a good kitchen sink app. All the examples I got from the SDK seem to partially work. All I'm trying to do is use a master page from InDesign from the server side and edit certain text fields. For example placing first and last name in particular text fields. Does anyone know of a good place to get examples code that shows all the features or how I would approach this problem?
http://www.adobe.com/devnet/indesign/documentation.html#idserver Has a lot of resources that is useful when starting out. In particular http://wwwimages.adobe.com/www.adobe.com/content/dam/Adobe/en/devnet/indesign/cs55-docs/InDesignServer/ids-solutions.pdf includes a number of code examples for various common operations.
As to your specific example, the typical way to go about it is:
1. Get the page object from the master pages list.
2. Iterate over each text field on the page.
3. Somehow identify the fields, for example by setting the script label in the template document and checking the labels of each text field you iterate through.
4. Set the contents of the text field.
A lot of the official InDesign documentation is partial.
Jongware also hosts the complete reference documentation:
http://www.jongware.com/idjshelp.html
Probably the reason why teh IDS documentation isn't that exhaustive is that dealing with the server version is an extension of the classical indesign use. So the exception of some peculiarities detailed in the ids sdk docs, you will find most of the help with InDesign Scripting guides ;)

Resources