Telerik Forums
UI for WinForms Forum
1 answer
167 views

Background:

  • Given a spreadsheet template, to generate a new spreadsheet by filling the information and barcode.
  • E.g. the screenshot (template) below, the barcode to be inserted at the cell location.

What I have done:

  • I manage to locate the target cell index (by searching the keyword $PART_NAME_LABEL$).

Question:

  • How to insert the barcode (image) at the target cell index location?
  • Any other suggestions for barcode generation? (Instead of inserting the barcode image, e.g. using barcode font)

I have referred to the sample in this page but it doesn't work.

https://docs.telerik.com/devtools/document-processing/libraries/radspreadprocessing/features/shapes-and-images

 

XlsxFormatProvider formatProvider = new XlsxFormatProvider();
            Workbook workbook = formatProvider.Import(File.ReadAllBytes(@"C:\temp\temp.xlsx"));

            var worksheet = workbook.Sheets[0] as Worksheet;

            FindOptions f = new FindOptions();
            f.FindWhat = "$PART_NAME_LABEL$";

            IEnumerable<FindResult> result = worksheet.FindAll(f);

            foreach(var i in result)
            {
                worksheet.Cells[i.FoundCell.CellIndex].SetValue("");
                //Add barcode here
                RadBarcode radBarcode1 = new RadBarcode();
                Telerik.WinControls.UI.Barcode.Symbology.Code39Extended code39Extended1 = new Telerik.WinControls.UI.Barcode.Symbology.Code39Extended();
                radBarcode1.Symbology = code39Extended1;
                radBarcode1.Value = "123456";
                radBarcode1.LoadElementTree();

                var ms = new MemoryStream();
                Image barcode = radBarcode1.ExportToImage();
                barcode.Save(ms, ImageFormat.Png);

                FloatingImage image = new FloatingImage(worksheet, i.FoundCell.CellIndex, 35, 10);
                image.ImageSource = new Telerik.Windows.Documents.Media.ImageSource(ms, "png");
            }

 

 

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 08 May 2023
2 answers
144 views

 

Hi!
It is a very fast tool to convert a RadGridView to PDF.
My problem is that I have to print a huge footer referring to some laws. About 1800 characters.
But it only shows me less than 900 characters.
Any solution?
Thank you

 

 

 

Gariel
Top achievements
Rank 1
Iron
 answered on 06 May 2023
4 answers
210 views

I'm having an interesting issue with the VS Designer and Telerik forms.  My forms are shrinking!  Sure, I can set the size in code behind, but I shouldn't have to.  This is a problem with all my Telerik Winforms projects.

Create a new Telerik Winforms project.  Expand the original form and add a grid.  Anchor the grid.  Save and close the form.  When the form is reopened, the grid is the correct size, but the window shrinks.

It appears the designer fails to set the Size property.

Is it just this machine?  

Please advise.

VS2022, Telerik Winforms 2023.1.117

Dave
Top achievements
Rank 2
Iron
Iron
Iron
 answered on 04 May 2023
1 answer
184 views

I'm doing lots of updates and deletes in my Spreadsheet, but the UseCellRange parameter doen't seem to get updated.

How is it calculated?

I don't really want to create my own version of it, but I can't seem to make it accurate.

Even when I can see that rows are empty, it thinks they have some content, then those blank rows get processed when they should not.

Any ideas?

Aleks
Telerik team
 answered on 04 May 2023
1 answer
252 views

I have some controls which get embedded inside another application, so they don't have aparent Form.

But they need to share the same Theme as all the forms.

Setting the Theme for the forms is easy.

But I can't see where to apply the same Theme to a Control? Is this even possible?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2023
1 answer
212 views

Hi Team

Please suggest one Example realated to  "Replace Infragistics toolbar  by using Telerik controls"

Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 03 May 2023
1 answer
310 views

I want to change the highlight color of a selected row. But, I can't. 

Could you tell me how to do it?

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 01 May 2023
1 answer
183 views

I'm using PatternFill.CreateSolidFill to add colors to some of my spreadsheet cells, and it works fine.

But when I come to reset those colors back to 'normal' , their borders have gone:

Here, I apply the fill to some cells, but want to reset the color where the formatting rules does not apply. I am applying a solid fill, like:

PatternFill.CreateSolidFill(ThemableColor.FromArgb(255, 255, 255, 255))

..but this is where the border goes away.

How should I reset the border as well as the original color ?

Thanks

Nikolay Demirev
Telerik team
 answered on 28 Apr 2023
1 answer
166 views
Hi,

I am wondering if there is a way to lock the file if loading a document using the path of the pdf file because it does not accomplish that during the method call. I am able to delete the file while it is loaded in the viewer. i am using 2023 controls.
Yoan
Telerik team
 answered on 27 Apr 2023
1 answer
120 views
Is there a way to auto-size a column(s) in a spreadsheet, so that the text will fit the column? Like with the grid view.
Dimitar
Telerik team
 answered on 25 Apr 2023
Narrow your results
Selected tags
Tags
GridView
General Discussions
Scheduler and Reminder
Treeview
Dock
RibbonBar
Themes and Visual Style Builder
ChartView
Calendar, DateTimePicker, TimePicker and Clock
DropDownList
Buttons, RadioButton, CheckBox, etc
ListView
ComboBox and ListBox (obsolete as of Q2 2010)
Form
Chart (obsolete as of Q1 2013)
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
PropertyGrid
Menu
RichTextBox (obsolete as of Q3 2014 SP1)
Panelbar (obsolete as of Q2 2010)
PivotGrid and PivotFieldList
Tabstrip (obsolete as of Q2 2010)
MaskedEditBox
CommandBar
PdfViewer and PdfViewerNavigator
ListControl
Carousel
GanttView
Diagram, DiagramRibbonBar, DiagramToolBox
Panorama
New Product Suggestions
VirtualGrid
Toolstrip (obsolete as of Q3 2010)
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
SplitContainer
Documentation
Map
DesktopAlert
CheckedDropDownList
ProgressBar
MessageBox
TrackBar
Rotator
SpinEditor
CheckedListBox
StatusStrip
CollapsiblePanel
LayoutControl
ShapedForm
SyntaxEditor
Wizard
TextBoxControl
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
WaitingBar
GroupBox
DataEntry
ScrollablePanel
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
FileDialogs
ColorDialog
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
RibbonForm
Styling
Barcode
PopupEditor
TaskBoard
NavigationView
Callout
ColorBox
PictureBox
FilterView
Accessibility
VirtualKeyboard
DataLayout
Licensing
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
BreadCrumb
ButtonTextBox
FontDropDownList
BarcodeView
Overlay
Security
LocalizationProvider
Dictionary
TreeMap
StepProgressBar
SplashScreen
Flyout
Separator
SparkLine
ToolbarForm
NotifyIcon
DateOnlyPicker
AI Coding Assistant
Rating
TimeSpanPicker
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
TimeOnlyPicker
SpeechToTextButton
+? more
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Boardy
Top achievements
Rank 2
Veteran
Iron
Benjamin
Top achievements
Rank 3
Bronze
Iron
Veteran
ivory
Top achievements
Rank 1
Iron
Iron
Rob
Top achievements
Rank 3
Bronze
Bronze
Iron
ClausDC
Top achievements
Rank 2
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?