Telerik Forums
Telerik Document Processing Forum
10 answers
805 views

Hi,

My apologies in advance if this cannot be done using Telerik Document Processing and I'm wasting everyone's time. I'll try and explain my situation the best I can.

We have large number of word documents related to a process which need to be converted to online forms. That's the easy part. The business wants the reporting of these forms exactly in the same format as in the original word documents. So we are hoping to use the word documents as templates (not necessarily .DOTX). 

Since the format of word documents often change The idea is to

  • Have one base document of each format kept on the server.
  • This base doc will have place-holders for the data to be filled in by asp.net (C#) for e.g. Employee Name: <<NAME>>.
  • When a report is to be generated, the relevant data is pulled from the SQL database and filled in the placeholders of the document. So in the above example <<NAME>> will be replaced by real name of the employee from database.
  • There will be some Base64 Images which will come from database and to be placed in the document e.g. signatures, profile pictures.
  • Once the document is completely filled, it is converted to PDF and downloaded to user's browser.
  • Whenever the format of a word document changes, it is replaced on the server and the asp.net fills this new format.  

Since we are in design phase of this I'm open to adapt to any suggestions. Any pointers/demo/advice on approach is welcome.

 

Thanks in Advance.

Ruben
Top achievements
Rank 1
 answered on 30 Jan 2018
14 answers
508 views
Hi,
exported pdf from Telerik.Windows.Documents.Model.RadDocument  with Telerik.Windows.Documents.FormatProviders.Pdf.PdfFormatProvider. Export(RadDocument document, Stream output) seem not be compliant with the PDF/A standard. Those exported pdfs are being konverted to PDF/A when opened with Adobe Reader X or XI which leads to a unwanted save dialog when those pdfs are closed again. When searching the forums for help I found e.g this thread (http://www.telerik.com/forums/pdf-a-iso-standard#beAEQxU83ESRLCawuwGPhQ) which confused me a bit because Steve assumes the export functionality fits the needs of PDF/A while Chavdar points out that PDF/A is currently not supported and that it is not clear when it will. I wanted to attach a example pdf so that you maybe could tell when investigating the file if something is wrong in the RadDocument from which the pdf is produced but uploading pdf is not supported. Can you help by any chance?

Thanks in advance  Jo
Polya
Telerik team
 answered on 29 Jan 2018
4 answers
171 views

Hello friends - I am using the trial of Telerik and am interested to see if it will meet my need of converting 5 radgrids stacked on top of each other into ONE pdf.

My page set-up is like this

Grid1

Grid2

Grid3

Grid4

 

And I want my pdf to be generated just like this - no added buffering or whitespace.  How can this be done'?

Marin Bratanov
Telerik team
 answered on 24 Jan 2018
2 answers
341 views

Hi,

I'm just evaluating this library.
I want to create a PDF with path objects, but I'm not able set any color.
I'm converting a WPF Path (System.Media.Windows.geometry) with the PdfGeometryHelper.ConvertPathGeometry (Telerik example)) to a Telerik Path geometry:

      var wpfWindpwsPath= Geometry.Parse("F1 M 7.5,11.500 L 21.500,11.500 L 21.500,15.500 L 7.500,15.500 L 7.500,11.500 Z");
      var wpfWindpwsPathGeometry = wpfWindpwsPath.GetFlattenedPathGeometry();
      var wpfTelerikPathGeometry = PdfGeometryHelper.ConvertPathGeometry(wpfWindpwsPathGeometry);

      var block = addTableCell.Blocks.AddBlock();
      Telerik.Windows.Documents.Fixed.Model.Graphics.Path path = new Telerik.Windows.Documents.Fixed.Model.Graphics.Path();
      path.Fill = new RgbColor(156, 156, 155);
      path.Geometry = wpfTelerikPathGeometry;

//not possible
      block.InsertPath(path);

// this is possible, but color is black

      block.InsertPath(path.Geometry);

 

How can I set a color?

Deyan
Telerik team
 answered on 24 Jan 2018
2 answers
346 views

Hello,

I am trying to export docx as pdf but before pdf export I am inserting some html. The html is converted to RadFlowDocument and then inserted by RadFlowDocumentEditor. I am using InsertDocumentOptions which are set to 

      ConflictingStylesResolutionMode = ConflictingStylesResolutionMode.UseTargetStyle,
      InsertLastParagraphMarker = false

When I export the document to docx the html part has formating but when I export as pdf there is no formating.

The attached files are examples of the problem. The font is different and the part that was supposed to be bold is not.

Can you help to solve the problem? Is that a bug or it is not supported?

Best Regards

Boby
Telerik team
 answered on 19 Jan 2018
1 answer
470 views

How can I read Textfiles into string or into array without extract to temporary file before?

If not possible:

is there any c# example to read Textfiles to string from zip archive.

Tanya
Telerik team
 answered on 18 Jan 2018
14 answers
1.5K+ views

I am trying to Merge (embed) the Telerik.Documents.SpreadsheetStreaming.dll into my exe. I am able to add all of the DLL's that have referenced in my project with the exception of the one listed. I tried doing it via command line first and it did the same thing as it is when running it as a task in VS2017 Post Build Event.

 

It keeps coming back saying "It is still listed as an external reference in the target assembly."

 

Brian
Top achievements
Rank 1
Iron
Iron
 answered on 18 Jan 2018
1 answer
749 views

Hi,

I'm importing  html with RadFlowDocument document = htmlProvider.Import(html);
and exporting with htmlProvider.Export(document, stream);

I have two problems.

1. Why when html (HtmlFormatProvider) is exported, the css class is entered as an element style?
2. Why some elements are automatically added to the class (telerikNormal, TelerikTableNormal etc... I did't declare these classes )?

Can I turn off these options?

 

Many Thanks
Quop

Tanya
Telerik team
 answered on 16 Jan 2018
0 answers
484 views

Symptoms:
Most libraries from Telerik Document Processing are affected after you install January 9, 2018, .NET Security and Quality Rollup (KB4055002). Applications that request a fallback font or a character that is not included in the currently selected font return the following error messages:
System.TypeInitializationException
“FileFormatException: No FontFamily element found in FontFamilyCollection that matches current OS or greater: Win7SP1”.
Inner exception originates from: CompositeFontParser




Solution 1:

Microsoft has released an update which fixes the issue. More information about it you can find here: Description of the Security and Quality Rollup for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Server 2008 R2 SP1 (KB 4074880).

Solution 2:


To keep .NET 4.7.1 installed and maintain protection against vulnerabilities that are addressed by the January security updates, uninstall the January .NET Framework Security and Quality Rollup (KB 4055002), and then install the January .NET Framework Security-Only Update (KB 4054183). To do this, follow these steps:

  1. In Control Panel, open the Windows Update item, and then select View update history.
  2. In the Review your update history list, locate and select Security Update for Microsoft .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1 (KB4055002). Then, select Uninstall.
  3. When you are prompted for confirmation to uninstall, select Yes.
  4. Restart your computer if you are prompted to do this.
  5. Download and install the Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Windows Server 2008 R2 SP1 and .NET Framework 4.6 for Windows Server 2008 SP2 (KB 4054183) for your operating system configuration from the following links:
    Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 for Windows 7 SP1 and Windows Server 2008 R2 SP1 for x86 systems (KB4054183)
    Security Only update for .NET Framework 4.6, 4.6.1, 4.6.2, 4.7, and 4.7.1 on Windows 7 SP1 and Windows Server 2008 R2 SP1 for x64 systems (KB4055269)
  6. Follow the installation prompts, and then restart your computer if you are prompted to do this.

Solution 3:

 Roll back to the previous version of .NET Framework. To do this, follow these steps:

  1. In Control Panel, open the Programs and Features item.
  2. In the Uninstall or change a program list, locate and then select Microsoft .NET Framework 4.7.1, and then select Uninstall/Change.
  3. Select Remove .NET Framework 4.7.1 from this computer, and then select Next. 
  4. Select Continue to confirm the uninstallation.
  5. Select Finish after the uninstallation is finished. 
  6. Restart your computer if you are prompted to do this.
Tanya
Top achievements
Rank 1
 asked on 16 Jan 2018
0 answers
212 views

Hi All,

I have existing docx file which serves as my template. Margins, header and footer and text are all set. Text fields that will be replaced are all in { }. Just wondering how to make it multiple page single docx file with page breaks(pages are based on the number of recipients).  There will also be text replacement during process.

Right now the sample I see is creating all text and replacement from codebehind and not coming from an existing docx template ---> https://demos.telerik.com/aspnet-ajax/wordsprocessing/mailmerge/defaultvb.aspx

 

Any info that can get me started are very much appreciated.

Thanks in advance,

RJ

RJ
Top achievements
Rank 1
 asked on 15 Jan 2018
Narrow your results
Selected tags
Tags
+? more
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Simon
Top achievements
Rank 2
Iron
Iron
Bob
Top achievements
Rank 3
Iron
Iron
Veteran
Marco
Top achievements
Rank 4
Iron
Iron
Iron
Grant
Top achievements
Rank 3
Iron
Iron
Iron
Kao Hung
Top achievements
Rank 1
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?