Telerik Forums
Telerik Document Processing Forum
5 answers
1.5K+ views
It seems like the api does not have the ability to read and insert values into a pdf fillable form. Will this feature be implemented in the near future? If so, any timeline? Thanks.
Dimitar
Telerik team
 answered on 21 May 2020
1 answer
320 views
It appears that the PDF export in the dotnet core/standard version is broken. No font data is retained. Instead all fonts are changed to the default font, font weight, and style. The only font property that is retained through conversion is the size. I noticed that there are others complaining about this in the Framework version but I have not seen any progress in fixing the problem or work around suggested. Is there a way to export to PDF a flex document with some control over the font weight and style?
Dimitar
Telerik team
 answered on 20 May 2020
1 answer
100 views

Hi,

I'm implementing custom cell editor using spreadprocessing to create a template for user to export and edit.  After they are done, they import back using the Telerik built-in import function.  I have no problem when creating the validation in the cells as I followed your example here:

https://demos.telerik.com/aspnet-ajax/spreadsheet/examples/custom-editors/defaultcs.aspx

When I tried to open the export file, I would get an error : "We found a problem with some content in "abcd.xlsx".  Do you want us to try to recover as much as we can? ..."  After I clicked 'Yes', my custom cell editors disappeared.

The same error occurs when I export from your demo.  However, if I create a spreadsheet with validation from scratch, everything works perfectly.

Please help!

Thank you,

Helen

Peter Milchev
Telerik team
 answered on 14 May 2020
2 answers
585 views

I'm using Telerik in an interop environment with C++ and trying to replace our old ZIP library.  With the code below it appears to ZIP all files correctly except the last file always has some error with it like it isn't being written out properly.  I've changed the number and type of files and the specific file type doesn't matter, the last one in the archive is always corrupted when i test the archive.

 

    System::String^ sSource = gcnew System::String(m_sPath1);
        System::String^ sDest = gcnew System::String(sZipDest);
        
        System::IO::File^ file = nullptr;
        System::IO::Stream^ stream = file->Open(sDest, System::IO::FileMode::Create);
        Telerik::Windows::Zip::ZipArchive^ zarchive = gcnew Telerik::Windows::Zip::ZipArchive(stream, Telerik::Windows::Zip::ZipArchiveMode::Create,false,System::Text::Encoding::UTF8);
         
        Telerik::Windows::Zip::DeflateSettings^ compressionSettings = gcnew Telerik::Windows::Zip::DeflateSettings();
        compressionSettings->CompressionLevel = Telerik::Windows::Zip::CompressionLevel::Best;
        compressionSettings->HeaderType = Telerik::Windows::Zip::CompressedStreamHeader::ZLib;
 
        pList3->ResetContent();
        rc = 0;
        nCount = pList1->GetCount();
        for (n = 0; n<nCount; n++) {
            pList1->GetText(n, sFileName);
            sFullyQualifiedFileNameFrom = fs.AppendWildcard(m_sPath1, sFileName);
            int nSel = pList3->AddString(sFileName);
            pList3->SetCurSel(nSel);
            pList3->UpdateWindow();
            System::String^ sFull = gcnew System::String(sFullyQualifiedFileNameFrom.GetBuffer());
            System::String^ sName = gcnew System::String(sFileName.GetBuffer());
            Telerik::Windows::Zip::Extensions::ZipFile::CreateEntryFromFile(zarchive, sFull, sName, compressionSettings);
            int nFilesPercent = 100 * (n + 1) / nCount;
            m_prStatus.SetPos(nFilesPercent);
        }
        Sleep(5000);
        stream->Flush();
        stream->Close();

 

Is there something else that should be done to finish the compression/writing of the last file when in the loop using CreateEntryFromFile?  

Martin
Telerik team
 answered on 13 May 2020
1 answer
492 views

Hi

I'm using RadFixedDocumentEditor to insert several line of text (editor.InsertRun and editor.InsertLine).

I use InsertLine and like HorizontalAlignment = left.

But how can I insert justified line of text ? Is it possible ??

Tanks

Tanya
Telerik team
 answered on 11 May 2020
2 answers
358 views

Hi

I'm using the next code to generate a simple pdf

RadFixedDocumentEditor editor = new RadFixedDocumentEditor(document)

editor.SectionProperties.PageSize = new Size(Unit.MmToDip(210), Unit.MmToDip(297));
editor.ParagraphProperties.HorizontalAlignment = HorizontalAlignment.Center;
editor.CharacterProperties.Font = FontsRepository.TimesRoman;
editor.InsertParagraph();
editor.InsertRun("Test è ò");
                
This issue is that the è and ò character are NOT printed at all.

Tnx               ...

Tanya
Telerik team
 answered on 11 May 2020
1 answer
69 views

https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/cross-platform

Accessed from this page:

https://docs.telerik.com/devtools/document-processing/libraries/radwordsprocessing/getting-started

Thanks,

Joel

Dimitar
Telerik team
 answered on 29 Apr 2020
5 answers
514 views

Hi,

In my app on azure cloud, I need to convert  docx, xlsx and html file to pdf and, I'm trailing your library. The code from this example works fine locally but when I publish it to azure I get error 500. My test function app service runs in Standard pricing tier. Are there any specific requirements?

Thanks,

b.

Bill
Top achievements
Rank 1
 answered on 26 Apr 2020
1 answer
169 views
I know in acrobat you can create a form field with currency formatting.  Is this possible with PDFProcessing?  I have been able to right justify a field but not set a format.
Martin
Telerik team
 answered on 22 Apr 2020
6 answers
651 views

Hello,

I have some code to import a Word-document with MergeFields, than I MailMerge it with some data end export it to a new document.

This works fine, but I also want to fill a table in the document. How can this be done?

I was trying something like this, but this doesn't work ...

Thanks for any help you guys can give!

 

using System.Collections.Generic;
using System.IO;
using Telerik.Windows.Documents.Flow.Model;
using Telerik.Windows.Documents.Flow.FormatProviders.Docx;

public class ProccessDocument
{
    public ProccessDocument()
    {
        RadFlowDocument importDocument = new RadFlowDocument();

        DocxFormatProvider providerIn = new DocxFormatProvider();
        using (Stream input = File.OpenRead("import.docx"))
        {
            importDocument = providerIn.Import(input);
        }

        RadFlowDocument exportDocument = importDocument.MailMerge(GetData());

        DocxFormatProvider providerUit = new DocxFormatProvider();
        using (Stream output = File.OpenWrite("export.docx"))
        {
            providerUit.Export(exportDocument, output);
        }
    }

    private List<Schedule> GetData()
    {
        return new List<Schedule>()
            {
                new Schedule()
                {
                    Name = "John",

                    Items = new List<Item>()
                    {
                        new Item() { Date = "11/5/2016", Subject = "Soccer training" },
                    }
                },
                new Schedule()
                {
                    Name = "Debby",

                    Items = new List<Item>()
                    {
                        new Item() { Date = "10/5/2016", Subject = "Swimming" },
                        new Item() { Date = "12/5/2016", Subject = "Dancing" },
                        new Item() { Date = "15/5/2016", Subject = "Music" },
                    }
                },
            };
    }
}

public class Schedule
{
    public string Name { get; set; }
    public List<Item> Items { get; set; }
}

public class Item
{
    public string Date { get; set; }
    public string Subject { get; set; }
}

Tanya
Telerik team
 answered on 22 Apr 2020
Narrow your results
Selected tags
Tags
+? more
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Ambisoft
Top achievements
Rank 2
Iron
Pascal
Top achievements
Rank 2
Iron
Matthew
Top achievements
Rank 1
Sergii
Top achievements
Rank 1
Iron
Iron
Andrey
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?