Cannot edit CodeMirror or Ace in a taskpane of an add-in in Excel for Windows - focus

I just realized that we cannot modify texts in CodeMirror or Ace in a taskpane of an add-in in Excel for Windows.
I have made a test html page with this code, and link it to a manifest file of an Excel add-in. It works well in Excel Online (in Chrome and IE), Excel for Mac. However, in Excel for Windows, 1) textarea works well; 2) We could put the focus on CodeMirror, whereas we can NOT type anything; 3) When we put the focus on Excel then back on Ace, we can NOT type anything.
I have not tested other JavaScript-based source editor, because my webpage is actually built with angularjs and I need ui-codemirror or ui-ace. I have tested them, they have the same bug, though i will not list the testing code here because I don't think it is the ui- that causes the problem.
Is anyone aware of this odd behavior? How could we fix this? Is there any workaround or alternative?
PS: I have found a comment from the author of the CodeMirror, but I don't know if (and how) it can help fix add-ins in Excel for Windows.
PS2: I just realised that, if we click on Excel, then click on a useless area (somewhere without element) in the taskpane before clicking in the Ace textarea, we could then edit its content. Does anyone know how to use this to make a workaround for the Ace textarea? This method does not work with CodeMirror textarea...

I think yo can follow this steps mentioned here.
I hope it will solve your issue as it solve the issue for that user:
https://github.com/ajaxorg/ace/issues/3375

Related

Fast Report 5 VCL Issue during export to Word "Docx". "µg/kg" is being exported as "µg/kg"

Fast Report 5 VCL Issue during export to Word "Docx" µg/kg is being exported as µg/kg.
Using Fast Report Version VCL 5.6.17 with Delphi 7.
How to Reproduce the Error.
Create a new page.
In the Report Title Band , put 1 Memo (TfrxMemoView)
In the memo Text, put "µg/kg" as text.
Use the Export to Microsoft Word 2007 XML.
On the Exported Word Document "µg/kg" is shown as µg/kg.
In the Exported Word document an extra character "Â" is injected.
Similarly some of the other characters like "δβγδεζ" etc have also the same issue.
Can someone guide me as to what all i can try to resolve the problem.
I have tried with various font combinations to resolve this issue and am running out of ideas.
Direct printing as well export to PDF does not have any issue.
I have Reported this problem to Fast Report. So hopefully they should help me out.
Thanks
Fast Report Team has given me the new Pas file which has resolved the issue.
Thanks

Printing ReportBuilder Reports to Excel in Delphi XE

We used to use ExtraDevices to print ReportBuilder Reports to Excel. Unfortunately, there seems to be no support for Delphi XE.
Can someone suggest an alternative way to print a ReportBuidler Report to Excel? It doesn't have to be a free solution, though an open source option is always preferable.
I am currently considering Gnostice and ReportBuilder Export Devices Pro
Our only requirement is to be able to print to Excel, so my initial sense is that option 2 might be a better fit.
How reliable are these tools? And, can someone suggest other alternatives? We do not need to print to PDF.
Thank you!
This may be too late now but I am leaving this response for anyone else who might be interested in it. (I am from Gnostice.) If you are using eDocEngine, there are three ways to save the report as XLS. Instead of the PDF engine component used in this article, use our XLS engine component. You can enable the print to file option and let it save to an XLS file. You can also use a RTM template, load it with data and print to file. You can also create a RAF file and also render it to XLS without any user interaction.
http://www.gnostice.com/nl_article.asp?id=243&t=Export_From_ReportBuilder_To_PDF_And_Other_Formats

How to create solution add-ins in Visual Studion 2008

I'am trying to create Solution Add-in with the help of this link:
http://msdn.microsoft.com/en-gb/library/vstudio/ms165621(v=vs.80)
However, I've been loosing. I follow those instructions carefully, but I think that something important is missing from my view. So, this is the order of what I am doing, and what I am planning to get:
Create default Add-in solution with the help of Add-in wizard. Since it is planning to be a solution add-in, I remove the XML declaration file.
Check "register is as a COM object" in the properties tab.
Use regasm to register the add-in as a com object in the windows registry.
And this is where the troubles begin. As I understand, I must write the following code from the link into my OnConnect event of Add-in class file. Ok, I've done that. Build project, and everything is fine.
BUT I don't understand how to associate this add-in with solution. MSDN says:
"When Visual Studio loads a solution, it first examines the solution (.sln) file to see if it references add-ins. If so, it loads them and calls the same IDTExtensibility2 methods as a regular Visual Studio add-in."
When I'am trying to debug add-in, I've open my external solution, but nothing fires in my OnConnect event, untill I've checked the add-in in Add-in manager window.
Is it intended to be so, or I am missing something important in this steps. As I understand from descriptions, solution's add-in OnConnect must be fired at the moment, when IDE opens any solution file.
I understand that this won't help you much now, but might help someone else. I have faced the same problem last week, trying to make add-in that will load and be active only with one solution. Ended up on the same MSDN page and stuck on the same point :).
To make solution add-in follow the link provided in the question. Follow all the points listed except point number five - skip adding following line of code in your add-in logic:
EnvDTE.AddIn addin = _applicationObject.Solution.AddIns.Add("MyAddin.Connect", "MyAddinName", "My add-in description", true);
Open text editor and edit .sln. Input these lines at the end of .sln file in the global section:
Global
(...)
GlobalSection(ExtensibilityAddIns) = postSolution
MyAddin.Connect = 1;My add-in description;MyAddinName
EndGlobalSection
EndGlobal
This is exactly what _applicationObject.Solution.AddIns.Add() inputs in .sln file
Now when this solution is loaded into visual studio, while loading solution it will also load this add-in. One more thing to add here:
when add-in is loaded this way, connectMode param passed to the OnConnection function has value ext_ConnectMode.ext_cm_Solution.
Hope it helps :)

Delphi Custom Listview Draw

I am looking to make something like IPhone Listbox !
I found someone who provided a download url for this project: but I was to late and the download url does not work anymore.
So I'm asking if killercode the same member on experts-exchange to upload it again if possible and if there is someone who can help me find the right component for this kind of listbox to use in Delphi.
TDbCtrlGrid looks a lot like what you are looking for.
You just define how each row has to look in the form designer, and that is used as some sort of template for each record in your dataset. It shouldn't take more than a couple of minutes to reproduce whatever you have in your screenshot.
This screenshot was found via google and shamelessly posted here..
Also, check this question:
Delphi control that could mimic "Add-ons|Extension list" of Firefox?
It's about somebody trying to mimic the FireFox add-on list:
If you want to pay for components, TMS software do an iPhone controls pack, which i think has a listview.

How do I add recent items to my program's jump list on the Windows 7 taskbar?

I'm using Delphi XE and would like to add "recent items" in the Windows 7 taskbar jump list for my application, like when right-clicking on Microsoft Word brings up recently opened documents.
I've found information on how to set the progress but nothing on jump-list items. Any help would be greatly appreciated.
This will happen automatically if, for instance, you only use the standard Windows file dialogs. At least my text editor, Rejbrand Text Editor, has got such a MRU list by Windows. It lists all files I have recently edited using Rejbrand Text Editor, even though I have not written any code at all for it.
I think that Windows observes the files you
open and save in your application by means of standard Windows file dialogs
open in your application by starting yourapp.exe <file name>, for instance by double-clicking a file that opens in your application
and automatically display these in the list.
If you want to control the task bar button and menu programmatically, you can use the Windows API. Delphi-specific examples are found in this blog post.
In my opinion the best way to do this is to make the following simple API call:
SHAddToRecentDocs(SHARD_PATH, PChar(FileName));
This not only deals with Windows 7 jump lists but also adds your file into the system's list of recently used documents which has an effect on early versions of Windows too.
Call the function whenever you open or save a file.
For your convenience, a link to the documentation of SHAddToRecentDocs().
Here are some resources that I have found useful when making my programs vista ready
http://code.google.com/p/theunknownones/wiki/TaskbarListComponents
http://www.installationexcellence.com/articles/VistaWithDelphi/Index.html
http://www.theabsolute.net/sware/delphivista.html

Resources