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
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
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?
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
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
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
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:
Thanks,
Michael
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.
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?
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