Telerik Forums
Telerik Document Processing Forum
3 answers
180 views

I want to set the paper type and ScaleFactor of worksheet but the code below for papertype and scalefactor does not compile.  I would like some help with this.

WorksheetPageSetup pageSetup = wb.ActiveWorksheet.WorksheetPageSetup;

pageSetup.Margins = new PageMargins(25.00, 25.00, 25.00, 25.00);

pageSetup.PaperType = PaperType.Letter;

pageSetup.ScaleFactor = new Size(0.9, 0.9);

Tanya
Telerik team
 answered on 04 Sep 2015
1 answer
297 views
Is it possible to insert a pivot table into the worksheet using SpreadProcessing?
Petya
Telerik team
 answered on 02 Sep 2015
3 answers
982 views

Hi

 We are working on a module which will accept data from a web api web service, use it to populate a word document via mail merge and save the document as a PDF. Is this a situation that RadWordsProcessing will be help with?

 

Regards

John

Tanya
Telerik team
 answered on 24 Aug 2015
1 answer
224 views

Is there a reliable way to detect a bad password when opening a ZipArchive?  I'm currently getting an InvalidOperationException when reading the first entry, and the message is a generic "Invalid data".  Exception shared below.

 

Telerik.Windows.Zip.InvalidDataException occurred
  HResult=-2146233088
  Message=Invalid data
  Source=Telerik.Windows.Zip
  StackTrace:
       at Telerik.Windows.Zip.DeflateDecompressor.SetPreviousCode() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\Deflate\DeflateDecompressor.cs:line 630
       at Telerik.Windows.Zip.DeflateDecompressor.ReadTreeCodes() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\Deflate\DeflateDecompressor.cs:line 589
       at Telerik.Windows.Zip.DeflateDecompressor.DecodeDynamicBlockHeader() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\Deflate\DeflateDecompressor.cs:line 534
       at Telerik.Windows.Zip.DeflateDecompressor.CheckDecodeState() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\Deflate\DeflateDecompressor.cs:line 274
       at Telerik.Windows.Zip.DeflateDecompressor.Decode() in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\Deflate\DeflateDecompressor.cs:line 233
       at Telerik.Windows.Zip.DeflateDecompressor.Inflate(Byte[] bytes, Int32 offset, Int32 length) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\Deflate\DeflateDecompressor.cs:line 736
       at Telerik.Windows.Zip.DeflateDecompressor.ProcessTransform(Boolean finalBlock) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\Deflate\DeflateDecompressor.cs:line 181
       at Telerik.Windows.Zip.CompressionTransformBase.TransformFinalBlock(Byte[] inputBuffer, Int32 inputOffset, Int32 inputCount) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\CompressionTransformBase.cs:line 162
       at Telerik.Windows.Zip.OperationStream.Read(Byte[] buffer, Int32 offset, Int32 count) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\OperationStream.cs:line 395
       at Telerik.Windows.Zip.CompressedStream.Read(Byte[] buffer, Int32 offset, Int32 count) in c:\TB\221\WPF_Scrum\Release_WPF\Sources\Development\Frameworks\Zip\Compression\CompressedStream.cs:line 155
       at System.IO.Stream.InternalCopyTo(Stream destination, Int32 bufferSize)
       at System.IO.Stream.CopyTo(Stream destination)
       at PacketMonitor.BinaryLog.LogReader.Open(String fileName, String password)
  InnerException: 

Petya
Telerik team
 answered on 24 Aug 2015
1 answer
150 views
Is it possible to fill the form fields in a PDF with the current UI for WPF DevTools?
Tanya
Telerik team
 answered on 18 Aug 2015
2 answers
837 views

Hello,

I am struggling setting the Font Size of all the Text in my Table that i am drawing inside of my pdf document.  It seems like it is defaulting to either 10 or 12... I need to display at least 4 columns in a row, and i want to reduce the font size to at least 8.  Is there any way to do this without setting up a unique block each time and then trying to add it to Cell, and Row , etc...

 

My code looks like this below:

---------------------------------------------------------------------------------------------------------------------------------------------------------

 Dim RevenueTable As New Table()

   Dim firstRow As TableRow = RevenueTable.Rows.AddTableRow()

            firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("---------------------------")
            firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("--------------------SERVICE")
            firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText(" DETAILS-------------------")
            firstRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("---------------------------")

            Dim secondRow As TableRow = RevenueTable.Rows.AddTableRow()
            secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText(objReceipt.SERVCODE(i))
            secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText(objReceipt.SERVNAME(i))
            secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText(objReceipt.SERVQTY(i))
            secondRow.Cells.AddTableCell().Blocks.AddBlock().InsertText("")

            Dim ServiceCodeRowDesc As TableRow = RevenueTable.Rows.AddTableRow()
            ServiceCodeRowDesc.Cells.AddTableCell().Blocks.AddBlock().InsertText("Revenue Desc")
            ServiceCodeRowDesc.Cells.AddTableCell().Blocks.AddBlock().InsertText("Item Price")
            ServiceCodeRowDesc.Cells.AddTableCell().Blocks.AddBlock().InsertText("Qty")
            ServiceCodeRowDesc.Cells.AddTableCell().Blocks.AddBlock().InsertText("Revenue Amount")

 {....lines of code removed ....}

 editor.TextProperties.FontSize = 8
  editor.DrawTable(RevenueTable)

------------------------------------------------------------------------------------------------------------------------------------------------ 

The font size is not 8.

Petya
Telerik team
 answered on 13 Aug 2015
2 answers
378 views

Hey,

I'm using a RadfixedDocument to create a Report and the PdfFormatProvider to export the Report to PDF.

Everything works fine, except for german Umlaut Letters (ä, ö, ü). They just disappear in the generated PDF. I couldn't find a switch in the Export Settings or anything else, can you give me some directions?

 Cheers,

Jens

Jens
Top achievements
Rank 1
 answered on 10 Aug 2015
1 answer
403 views

Hi there.

 

I have a Document i want to Search for a Specific Variable.

I need to get the parent container/block of the text.

 

thx

Petya
Telerik team
 answered on 31 Jul 2015
1 answer
892 views

Hi,

I created predefined docx template for reports I ​want to generate. The template is loaded into RadFlowDocument for more modifications. Somewhere in the middle of the document I want to insert a picture. How do I use the RadFlowDocument editor to move that specific location of the document and insert that image?

 

Best regards,

Ahmed

Tanya
Telerik team
 answered on 28 Jul 2015
4 answers
130 views

Hi,

I'm trying to use RadFlowDocument (2015 Q2) to create summary reports. Before switching to RadFlowDocument, I used to work with normal WPF FlowDocument and I'm able to host UI elements (such as charts) in it. Now, I'm trying to do the same thing with RadFlowdocument, but I can't host a UI element in it.

Is there any way to make RadFlowDocument host a UI element?

 

Thanks,

Ahmed

Ahmed
Top achievements
Rank 1
 answered on 26 Jul 2015
Narrow your results
Selected tags
Tags
+? more
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Rob
Top achievements
Rank 3
Iron
Iron
Iron
Atul
Top achievements
Rank 1
Iron
Iron
Iron
Alexander
Top achievements
Rank 1
Veteran
Iron
Serkan
Top achievements
Rank 1
Iron
Shawn
Top achievements
Rank 1
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?