Unplanned
Last Updated: 12 Apr 2019 14:45 by ADMIN
David
Created on: 07 Mar 2019 00:03
Category: Telerik Document Processing
Type: Feature Request
1
Convert to Telerik Application for Headless/UI-less Document Apps

I'm working on a project that has a service component that will be generating Excel xlsx documents for distribution.  While there is a UI for administrative tasks, the service itself will run without an interface.  I'm using the Documents.Core, and several other associated libraries to accomplish this.  Two issues I've encountered, one is setting up the project with the appropriate libraries and keeping the version in sync with the Admin application, second is protecting those libraries once they are packaged for release.  I had a support ticket open to determine how to accomplish the latter, but the first is still a manual issue.  

So the feature request is to include the ability in the project templates and/or Convert to Telerik WPF Application to support a headless document solution.  It would ideally include (only) the required libraries and maintain their linkage to the appropriate library version with the rest of the solution which occurs with a full Telerik WPF UI app.  It would also include the necessary boilerplate code and references to properly protect the libraries.  I was referred to another feedback request on improving the overall library protection build process, but while related, what I'm asking for here is not exactly the same.

7 comments
ADMIN
Martin Ivanov
Posted on: 12 Apr 2019 14:45
Hello David,

Sure. I've prepared a small set of screenshots to describe how the tool works. I hope this helps.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
David
Posted on: 06 Apr 2019 19:57
I'm afraid I'm being dense, but I tried to determine how to use the ReferencesResolverExtension, but can't quite figure out how it is supposed to work.  There's no included documentation with the project on Github nor on the VS Marketplace...  Any chance of getting a little short how-to on this?
David
Posted on: 22 Mar 2019 16:52

Your summary sounds like what I am looking for.

I did see the request to improve the experience for protecting the libraries, just wasn't sure how long that take.  That said, I put it in the request for the interim since that snippet of code isn't very obvious...  

ADMIN
Martin Ivanov
Posted on: 22 Mar 2019 16:43
Hello David,

Sorry for the delay. I approved this feature request. I also updated your Telerik points.

The only bit that we prefer not to include is the one with the protection key. It is not very convenient solution and we have a feature request to improve it which you can find here - https://feedback.telerik.com/document-processing/1356396-trial-message-is-added-to-the-document-when-the-source-code-is-rebuilt-with-activated-pass-phrase-validation.

Additionally, I've updated the title of the request. You can find the original one below:
"Convert to Telerik Application for Headless/UI-less Document Apps"

Lets see if we are on the same page and update the request if necessary. Here is a summarize description on what you want to achieve. Can you please check it and let me know if we should update something?
  • Creating a new Telerik Document Processing menu in the Telerik Visual Studio extensions.
  • The menu should contain options to create, convert and update Console Applications to Telerik Console Applications.
  • The new menu should create/convert or update a project and add the corresponding Telerik Document Processing assemblies (PDF, Spread, Word, etc.).

Note that I've moved this feature request to the Document Processing feedback portal because it is not related to UI for WPF.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
ADMIN
Martin Ivanov
Posted on: 20 Mar 2019 16:39
Hi David,

Thank you for the additional information. We are reviewing it and will get back to you tomorrow with more information on this.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.
David
Posted on: 13 Mar 2019 20:03

I don't have a handy solution that would fit the bill.  The solution I'm working on has lots of sub-projects attached.  Here's more detail I can provide without doing this in private:

C# Console project that will run via TaskScheduler.  The project/app will pull data out of a SQL database and create a pretty/formatted Excel workbook with multiple sheets which will be mailed via SMTP to a specified list of recipients.  As it will run (normally) in a logged off non-interactive fashion, there will be no UI elements.  I've manually included:

Telerik.Windows.Documents.Core
Telerik.Windows.Documents.Fixed
Telerik.Windows.Documents.Spreadsheet
Telerik.Windows.Documents.Spreadsheet.FormatProviders.OpenXml
Telerik.Windows.Documents.Spreadsheet.FormatProviders.Pdf
Telerik.Windows.PersistenceFramework
WindowsBase
PresentationCore

Also, I had a ticket opened that you previously answered for me regarding the library protections:

... In this case you will need to manually reference the required dlls to initialize the System.Windows.Application class and set the corresponding key in code. Here is an example in code:

new System.Windows.Application();

System.Windows.Application.Current.Resources.Add("Telerik.Windows.Controls.Key""MyApp");

 

So having a template/wizard that allows me to add spreadsheet creation functionality without the UI elements, having the necessary libraries references added, and the bit above to handle the protection key bits would be nice.  There should be much less boilerplate for this than in a full WPF application, so the tidbit above is about the only portion I can think of that would be nice to have auto-included.  Some of what I'm looking to replace was the exploratory portions of figuring out which Telerik and .NET libraries had to be included to support creating spreadsheet documents.  Also since I've upgraded the Telerik libraries from one release to another, the upgrade wizard took care of that for the UI project that was created as a Telerik WPF app.  I have to go back through and manually update the ones on my console app.

I'll take a look at the ReferencesResolver too.  Thanks

 

ADMIN
Martin Ivanov
Posted on: 13 Mar 2019 15:23
Hello David,

Thank you for the provided information. 

May I ask you to provide us with a small solution showing how the solutions are structured on your side? And also what exactly you expect as a project template? This will give us a better idea on your expectations so we can take this information into account.

Thank you for any help you can provide.

In the meantime, I could recommend you to give the following Visual Studio extension a try. It allows you to replace bulk of referenced dlls very easily. The tool is called ReferencesResolverExtension.

Regards,
Martin Ivanov
Progress Telerik
Get quickly onboarded and successful with your Telerik and/or Kendo UI products with the Virtual Classroom free technical training, available to all active customers. Learn More.