Telerik Forums
Telerik Document Processing Forum
1 answer
672 views

Hello,

I am writing a very specific type of a report, which I have to control line height, dynamically generate content, and fill in a chart object.  I'm currently doing this using OpenXML and Microsoft Word.  When created, the end result is exported into PDF.  This always seemed like overkill for me, and I would have preferred to use Telerik Reporting, except that Reporting doesn't let me set specific line heights.

In any case, I would like to try to dynamically build a web page of the report that I'm doing, which would be formatted exactly as I need it to be, and would also incorporate a RadChart.  I would like to use either WordsProcessing or PDFProcessing to take the MemoryStream of this HTML page, and output it to PDF.  Is this possible?  I don't see any specific examples, although I see there is a conversion demo which can take HTML as input and create a PDF as output.

Thank you,
Alex

Boby
Telerik team
 answered on 05 Oct 2015
1 answer
427 views

Hey,

i recently needed to downgrade a project from .NET 4.0 to .NET 3.5

I used the SpreadExportRenderer in TelerikExport.dll for exporting a PivotGrid to Excel and now the code isn't working any more because of some missing dlls. It seems like the whole Telerik.Windows.Documents.* libraries and TelerikExport.dll is not availiable for .NET 3.5. They are located in the Bin40 folder, nut not in regular Bin (i have UI for WinForms Q2 2015 installied).

Is there something i am missing?

Thanks & Cheers,

Jens

Dimitar
Telerik team
 answered on 02 Oct 2015
1 answer
1.3K+ views

Could an example be provided on how to create a PDF and set the Margins and Orientation for WinForms?

And if this involves the orientation involves use of PageRotation, could you please include how to rotate the text to match the rotation?

Tanya
Telerik team
 answered on 01 Oct 2015
7 answers
118 views

I am trying to get a nice export of may page to PDF.  I have several rad combo boxes that control the content of various areas of the page.

All the rad combo boxes are empty in the PDF - is there anyway around this? I was trying to use them a titles and I don't really want to have to repeat the selected value of the radcombobox in to a literal control next to each one - just so I can tell what I'm looking at in the PDF.

Thanks 

 

Kostadin
Telerik team
 answered on 30 Sep 2015
4 answers
534 views

I currently have the need to print a large amount of data from a silverlight app.  The customer is using a third party pdf printer driver . unfortunately the amount of data is overwhelming that driver.

My first thought to combat this is to create my own pdf file as opposed to using the printer subsystem.

The only truly graphic element in the printout is barcodes. I use your barcode control. The rest is text/columnar data.

So the question :

Can I add your barcode control to the raddocument within a table/cell value so that it will render properly to the pdf file. If so how would I go about doing that.

 Any Help would be appreciated

thanks

David Charles Ocasio

David Ocasio
Top achievements
Rank 2
Iron
Veteran
Iron
 answered on 29 Sep 2015
1 answer
231 views

Hello,

In the document found on Telerik (http://docs.telerik.com/devtools/aspnet-ajax/controls/spreadprocessing/features/freeze-panes), it shows the ActiveWorksheet has a ViewState property, however I do not find that.

I am using the Workbook class found in the namespace Telerik.Windows.Documents.Spreadsheet.Model.  It is my understanding that this is the correct Namespace / DLL(s) to use for processing spreadsheets.

 

 

Your help is appreciated,

Chris

 

Tanya
Telerik team
 answered on 29 Sep 2015
2 answers
178 views

We currently have a web application that allows the user to upload (utilizing the RadAsyncUpload control) files of different formats (csv,html,txt,xlsx) where the file stream (using the IWorkBookFormatProvider) is ultimately converted to a PDF and stored in a MSSQL database record.  The purpose of this process is so that we can have varying formats of input data and a common datatype that can be displayed in the web application.  The problem is that some of the csv, txt and xlsx files can have as many as 750,000 rows of data and for the purpose being discussed, we are only interested in the first 50 rows of the file.  I can use RowSelection and Remove the unwanted rows on smaller files.  However, this takes a long time to accomplished on large files.  How can I:

  1. Filter the worksheet rows so that I only get the first 50, or
  2. Insert the first 50 rows from worksheet A to worksheet B.

Thanks,

 Michael

Michael
Top achievements
Rank 1
 answered on 21 Sep 2015
1 answer
300 views

i'm trying to convert .docx file to pdf. i have downloaded all the latest dll's. can you please share sample code of as to how to convert to pdf.

thanks.

Svetoslav
Telerik team
 answered on 21 Sep 2015
3 answers
83 views

 

Does anyone know how to handle columns?  it appears that this is not a feature Telerik has added yet which i think is a Big oversight.

Most business related documents i have encountered all have columns which means when i tried to use Telerik's component they get all screwed up and not formatted right.  Anyone have a suggestion how to address this short coming in code? 

 

I sure hope Telerik realizes this is a big oversight and for Wordprocessing to be taken seriously they will need this.

In the mean time i either need to move to a different vendor component, or hopefully find a solution here...

 

any ideas?

 

 

Petya
Telerik team
 answered on 14 Sep 2015
3 answers
296 views

I am trying to incorporate the latest build with ZipArchive rather than ZipPackage and am having difficulty getting it to create a valid zip file. Here is what works using the ZipPackage:

Dim VehicleID As Int32 = CInt(ddVehicleList.SelectedValue)
 
            Dim memStream As New MemoryStream()
            Dim Package As ZipPackage = ZipPackage.Create(memStream)
 
            If VehicleID <> 0 Then
                Dim fileIndex As Int32 = 0
                For Each lvItem As ListViewItem In lvImages.Items
                    Try
                        Dim cbSelected As CheckBox = lvItem.FindControl("cbSelected")
                        If cbSelected.Checked Then
                            fileIndex += 1
                            Dim url As String = cbSelected.Attributes("url")
                             
                            Dim photo As ZipData.Photo = GetPhotoWithTagByURL(url, lvItem, fileIndex)
                            Dim stream As Stream = New MemoryStream(photo.Data)
                            Package.AddStream(stream, photo.Name)
                        End If
                    Catch ex As Exception
 
                    End Try
                Next
            Else
            End If
 

​

            SendZipToClient(memStream, Package

 

Private Sub SendZipToClient(memStream As MemoryStream, Package As ZipPackage)
 
        Dim FileName As String = ddVehicleList.SelectedItem.Text.Trim.Replace(" ", "_")
 
        Package.Close(False)
        memStream.Position = 0
 
        If memStream IsNot Nothing AndAlso memStream.Length > 0 Then
            Response.Clear()
            Response.AddHeader("content-disposition", "attachment; filename=" + FileName + "_images.zip")
            Response.ContentType = "application/zip"
            Response.BinaryWrite(memStream.ToArray())
            Response.[End]()
        End If
 
    End Sub

 

 

 This is what I have so far with ZipArchive (gives me an invalid zip file):

Dim VehicleID As Int32 = CInt(ddVehicleList.SelectedValue)
 
            Dim memStream As New MemoryStream()
            Dim Archive As New ZipArchive(memStream, ZipArchiveMode.Create, False, System.Text.Encoding.UTF8)
 
            If VehicleID <> 0 Then
                Dim fileIndex As Int32 = 0
                For Each lvItem As ListViewItem In lvImages.Items
                    Try
                        Dim cbSelected As CheckBox = lvItem.FindControl("cbSelected")
                        If cbSelected.Checked Then
                            fileIndex += 1
                            Dim url As String = cbSelected.Attributes("url")
                            Dim photo As ZipData.Photo = GetPhotoWithTagByURL(url, lvItem, fileIndex)
                            Dim stream As Stream = New MemoryStream(photo.Data)
                            'Package.AddStream(stream, photo.Name)
 
                            Dim lAttachment As ZipArchiveEntry = Archive.CreateEntry(photo.Name)
                            Using lAttachmentStream = lAttachment.Open()
                                Using lStreamWriter = New StreamWriter(stream)
                                    lStreamWriter.Flush()
                                End Using
                            End Using
                            lAttachment.Dispose()
 
 
                        End If
                    Catch ex As Exception
 
                    End Try
                Next
            Else
            End If
 
            SendZipToClient(memStream, Archive)
 
 
Private Sub SendZipToClient(memStream As MemoryStream, Package As ZipArchive)
 
        Dim FileName As String = ddVehicleList.SelectedItem.Text.Trim.Replace(" ", "_")
 
        'Package.Close(False)
        memStream.Position = 0
 
        If memStream IsNot Nothing AndAlso memStream.Length > 0 Then
            Response.Clear()
            Response.AddHeader("content-disposition", "attachment; filename=" + FileName + "_images.zip")
            Response.ContentType = "application/zip"
            Response.BinaryWrite(memStream.ToArray())
            Response.[End]()
        End If
 
    End Sub
 

 Can you please tell me what I am doing wrong?

Thanks.

 Charles

 

 

 

Viktor Tachev
Telerik team
 answered on 07 Sep 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?