Telerik Forums
Telerik Document Processing Forum
3 answers
418 views

I've recently been given the task of turning some labels that we use to put on hardcopy documents into format that can be printed with a small label printer that takes 62mm label tape.

Basically, the user types all the data for the label into a form. I then store the details for them in a grid. When they are ready to print the label, they click a print button that is in my grid. The data for the label is put into a pdf and they print it from the pdf.

The label printer uses a continuous roll or tape so that the text fields can be as long as they want. I'm currently putting all the details into a Table object and then I draw the table with a width of 62mm.

How can I find what the height of the table would be when the width is 62mm so that I can set the height of the page?

 

public RadFixedDocument CreateDocument()
        {
            RadFixedDocument document = new RadFixedDocument();
            RadFixedPage page = document.Pages.AddPage();
            page.Size = new Size(Telerik.Windows.Documents.Media.Unit.MmToDip(62), Telerik.Windows.Documents.Media.Unit.MmToDip(100));
            FixedContentEditor editor = new FixedContentEditor(page);

            Table table = CreateDetailsTable();
                        
            editor.DrawTable(table, Telerik.Windows.Documents.Media.Unit.MmToDip(62));

            return document;
        }

Georgi
Telerik team
 answered on 11 Jun 2019
9 answers
741 views
I am currently working on a task to export records from to excel file for a client in an . I want to know the maximum number of records and number of columns that can be exported using library. And I would also like to know the limitations of using this library for exporting large files with 3 to 5 lakhs of records.
Richard
Top achievements
Rank 1
 answered on 08 Jun 2019
1 answer
85 views

 

   Hi,

    Is there a way to set background for IRowExporter like set color for ICellExporter,seems we only can loop all cells in a row and set one by one now ?

 

   thank you !

 

  

Tanya
Telerik team
 answered on 05 Jun 2019
1 answer
374 views

currently ,we can set fore color for cell ,like 

ICellExporter cellExporter = rowExporter.CreateCellExporter()

var color = System.Drawing.ColorTranslator.FromHtml("#0095ff");
cellExporter.SetFormat(new SpreadCellFormat() { ForeColor = new SpreadThemableColor(new SpreadColor(color.R, color.G, color.B))} );

 

but how to set background color for cell,i searched API but find nothing,anyone good idea?

 

thank you 

Tanya
Telerik team
 answered on 31 May 2019
3 answers
142 views

Hello,

I am trying to create Word document from scratch.  I prepared a asp.net webforms application and got a System DataTable 

How do I insert a table from a datatable using Telerik RadWordsProcessing?

Thank you

Tanya
Telerik team
 answered on 30 May 2019
1 answer
269 views

First cell of table should not allow wrapping but always does. Does it have anything to do with the fact that I'm using a flow document instead of fixed? There seems to be very little documentation or samples of flow documents.

 

public void Mvce()
{
    Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider provider = new Telerik.Windows.Documents.Flow.FormatProviders.Pdf.PdfFormatProvider();
 
    RadFlowDocument document = new RadFlowDocument();
    RadFlowDocumentEditor editor = new RadFlowDocumentEditor(document);
 
    Table t = editor.InsertTable();
 
    TableCell cell0 = new TableCell(document);
    cell0.CanWrapContent = false;
 
    //AddBlock() not available??? Its in the documentation:
    cell0.Blocks.AddParagraph().Inlines.AddRun("ClientName:");
 
    TableCell cellLong = new TableCell(document);
    cellLong.Blocks.AddParagraph().Inlines.AddRun("Nullam sit amet dui porta, imperdiet quam sit amet, consequat diam. In vel orci rutrum, vehicula purus ullamcorper, ornare lorem. Sed at arcu ultrices, fringilla augue in, condimentum quam. Sed pretium faucibus");
 
    var row = t.Rows.AddTableRow();
    row.Cells.Add(cell0);
    row.Cells.Add(cellLong);
 
    using (Stream output = File.OpenWrite("sample.pdf"))
    {
        provider.Export(document, output);
    }
    Process.Start("sample.pdf");
}

 

Tanya
Telerik team
 answered on 17 May 2019
1 answer
120 views

Hi,

In my MVC project, we used custom-server-side code to export grid data to Excel by utilizing Telerik.Document.SpreadsheedStreaming library.  I explore Processing Document and didn’t find any interface related adding filter  and frozen row to the sheet. Do I have the way to do the job?  Any suggestion will be truly appreciated!  

Tanya
Telerik team
 answered on 16 May 2019
2 answers
1.1K+ views

I am trying to print existing pdfs from a database.    I am working mainly in asp.net expecting the print to happen on the server.  This works for other types of files and I also use Telerik reporting which automatically prints reports on the server.   The problem is what do I use to open an existing pdf and then send it to a printer without user interface.

Peshito
Telerik team
 answered on 16 May 2019
16 answers
889 views

Hi,

I do HtmlFormatProvider.Import (html), in html have Images, there is an exception (ParamName: data)

(Telerik ASP.NET AJAX 2015.1.104.45)

Why?

Tanya
Telerik team
 answered on 13 May 2019
1 answer
485 views

I was curious to know the process for simply freezing a specified set of rows at the top.

For example, we have a title section which takes up 7 rows, with each set of cells in a row merged to the number of columns.  The variable colSpan would be the number of header columns in the spreadsheet. 

worksheet.MergeCells(0, 0, 0, colSpan - 1); // first title segment
worksheet.MergeCells(1, 0, 1, colSpan - 1); // second title segment
...

 

I simply want to be able to freeze those top rows and be able to scroll both vertically and horizontally through the data below the frozen rows.

using (IWorksheetViewExporter worksheetView = worksheet.CreateWorksheetViewExporter())
 {                           
       worksheetView.SetFreezePanes(8, colSpan);
 }

 

However, when I use the freeze panes method, you can scroll vertically through all the content, but the horizontal scrolling starts in the cell at the bottom right of the last title row.  How can I achieve horizontal scrolling beginning at the first row and first cell of the rows below the title rows?

Thank you.

 

 


Nikolay Demirev
Telerik team
 answered on 07 May 2019
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?