Hi there,
I have tried your tool and decided to buy a Document Toolkit LightSwitch license. I've received the licence key but somehow it doesn't fit. I followed the documentation on how to register but it still shows Evaluation version. Could you tell me what to do next? I'm using v 1.4
Very nice developement, i just tried it in trial, but in a very sorry way the PDF files absollutely not oppening, even if i upload them to the Sample site also not vissible, easy to use, jpg,png.. (image files) are visible instantly, no effort to implemnt, would be perfect, just a "small" issue with PDF, which are absolutely not working :(
That shouldn't be too hard. Assuming you have a Documents table with binary EncryptedFile column. Add a computed property DecryptedFile and enter the following in the compute method;
partial void DecryptedFile_Compute(ref byte[] result)
{
// TODO: decrypt this.File
}
Add a document like this and make sure the Encrypt method is invoked when assigning the File property.
private void AddDocumentFromDisk()
{
Dispatchers.Main.Invoke(() => {
var dlg = new OpenFileDialog();
if (dlg.ShowDialog() == true) {
using (var reader = DocumentReader.Create(file)) {
var document = this.Documents.AddNew();
document.File = Encrypt(reader.ToBinary());
}
}
});
}
private byte[] Encrypt(byte[] file)
{
// TODO: encrypt file
}
Improvements to the PDF renderer are implemented one bug at a time. Fixing the PDF stack doesn't have a high priority. Also, the changes that Document Toolkit fully implements the PDF specification are rather slim.
Improvements to the PDF renderer are implemented one bug at a time. Fixing the PDF stack doesn't have a high priority. Also, the changes that Document Toolkit fully implements the PDF specification are rather slim.
I have some doubts
1. have the option to save as?
2. I have a file with 1MB saved in the database when I click the print button and print in the xps printer the file is saved with 80MB of size but in the database the file is only 1MB why this happen?
Hi Marden,
1) You can implement a save-as yourself. See also the tutorial 'How To Download and Update Documents' at http://documenttoolkit.codeplex.com/wikipage?title=How%20To%20Download%20and%20Update%20Documents
2) The XPS printer creates bitmaps for each page. Bitmaps are much larger than the vector graphics of the original XPS document.
Kind regards
Koen
It doesn't work in VS2012 RC Lightswitch with Lightswitch Cosmopolitan Them, and in didn't work with Metro Theme in LightSwitch 2011. It just stops and nothing happens.
Can you release version for Metro/Cosmopolitan Themes?
I have a trial version of the Document Toolkit and it's great. It does exactly what I need. I would like to buy the full version now. However, I can't figure out how to purchase it. I'm sure I will eventually figure it out, but you should really not make it so difficult for people to pay you. Anyway, it's a great product. Thanks!
Adding improvements to the PDF render engine is a continous process. There's still a number of updates required before the experimental notification bar will be removed. I can't provide you with a release date.
Hi,
i see the Demo and the Toolkit seems perfect. Is it possible to deploy the lightswitch application with Document Toolkit functionality as a Web Application?
Tx kiri
Hi kiri,
Document Toolkit works fine in a web application but Office document support is disabled. Office support requires elevated permissions which are only available to desktop apps. If you need to display Office documents in a web app, you'll need to convert them to XPS before you can display them.
Koen
Hi,
i see the Demo and the Toolkit seems perfect. Is it possible to deploy the lightswitch application with Document Toolkit functionality as a Web Application?
Tx kiri