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);
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
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:
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.
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
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
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
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