Telerik Forums
UI for WinForms Forum
0 answers
98 views

dear telerik support team

 

I am using Telerik 2015 winform, I was creating hyperlink in workbook for opening file while user click that hyperlink cell.

Workbook workbook = new Workbook();
            workbook.Worksheets.Add();
            Worksheet activeWorksheet = workbook.ActiveWorksheet;
            activeWorksheet.Cells[1, 1].SetValue("ok");
 
HyperlinkInfo webAddres = HyperlinkInfo.CreateHyperlink(@"C:\Users\OutputTes.xlsx", "tes");
CellIndex a1Index = new CellIndex(1, 1);
activeWorksheet.Hyperlinks.Add(a1Index, webAddres);
 
//Save workbook
IWorkbookFormatProvider formatProvider = new XlsxFormatProvider();
using (Stream otput = new FileStream(pathFile2, FileMode.Create))
{
      formatProvider.Export(workbook, otput);
}

 above is my code, but I still got error. 

 

 

zake
Top achievements
Rank 1
 asked on 29 Mar 2019
1 answer
69 views

Hi ,

I have bought Telerik Winforms license and it is working fine, but last week i upgrade project using upgrade wizard. After that, now it displays the trial popup again. In my project i still see the file licenses.licx. How can i solve it ?
I have tried go to my account and download the version again but it displays when i install :
Telerik UI for Winforms R1 2019 SP1 is already installed.


Thanks.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Mar 2019
0 answers
116 views

Hi,

Using BindingNavigator with DataLayout - how to add confirmation dialog to Delete button?

Also how to disable Delete button? 

Me.RadBindingNavigator1.BindingNavigatorElement.DeleteButton.Enabled = False 

- has no effect

Thanks

Alex

 

Alex Dybenko
Top achievements
Rank 2
 asked on 28 Mar 2019
1 answer
182 views

Hi Telerik,

   I am looking for a feature on the RadGridView which changes the Group value. As shown the attached screenshot, I want to change the value of the Country group from Argentina to Austria. After changing, the RadGridView will show the Country group of Austria with 5 rows within instead of showing 2 rows for Austria. Can you please help advise me for this feature? I am still searching in the forum while waiting for your response. Thank you very much.

   Regards,

   Tan.

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 28 Mar 2019
0 answers
73 views

Hi,

I have a login form when run application, and i want it focus on the textbox . Example i am having another applications are opening: notepad, IE... When i run exe , it does not focus on the winform application , so if i want to input textbox i have to use mouse click on textbox.

How can i solve it ?

thanks.

Bao
Top achievements
Rank 1
 asked on 28 Mar 2019
1 answer
251 views

HI, 

Please help

Language: VB.Net

DB: MySql

Application type: Document Management

How to save the loaded pdf file into MySql table and retrieve the same in same PDF Viewer? I have successfully saved the image from a picture box to SQL server DB (field datatype: image). I am very new to MySQL. recommend the data type also. 

Thank you very much

Arun

 

Dess | Tech Support Engineer, Principal
Telerik team
 answered on 27 Mar 2019
1 answer
109 views

Hello!

Do you have an example of a edit control which has custom drop-down area (I need something like RadCalculatorDropDown but with my own content of drop-down area)?

Thank you!

Hristo
Telerik team
 answered on 27 Mar 2019
3 answers
826 views

It is VERY important to us that PDF documents print to scale.I have read through the posts here and am still having the problem.

I am printing to a printer that has 0.16 in margins all around. The page size is 8.5 x 11. The drawing border is 8 x 10.5 (which would allow margins up to 0.25")

There are 2 images attached. Each shows an architect scale against the print out. One for Adobe, one for RadPrintDocument.
The Adobe prints to scale (the 120" wall at 1/2" scale shows 10 (10 feet).  The RadPrintDocument is short as it is automatically scaling the PDF file down.
Also attached is the PDF file I am using for this example.  Correction: PDF not attached as not allowed to attach to forum posts.

How can I stop that scaling please and always print to 100% scale please?

The code we are using:

RadPdfViewer rViewer = new RadPdfViewer();
rViewer.DocumentLoaded += RViewer_DocumentLoaded;
rViewer.LoadDocument(@fileLocation + fileName);
rViewer.LoadElementTree();
Application.DoEvents();

 

 private static void RViewer_DocumentLoaded(object sender, EventArgs e)
      {
         RadPrintDocument document = new RadPrintDocument();

         document.Landscape = true;
         document.DefaultPageSettings.PrinterSettings.Copies = 1;
         document.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
         document.AssociatedObject = (sender as RadPdfViewerElement);
        
         
         document.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
         document.DefaultPageSettings.Margins = new System.Drawing.Printing.Margins(0, 0, 0, 0);
         document.OriginAtMargins = true;
         document.HeaderHeight = 0;
         document.FooterHeight = 0;
         document.Print();
      }

Thank you!!!

 

 

 

Hristo
Telerik team
 answered on 27 Mar 2019
1 answer
118 views

OS: Windows 7

Scale Settings: 135% (1.35 in DPI Scale)

Spotted problems:

1) radSplitContainer, collapsible - when collapse/restore first panel it restores 1.35 larger than it was.

2) CommandBarElement.SaveLayout/RestoreLayout - restores elements in a wrong position. Elements that aren't aligned with left or top border will be moved right and bottom correspondingly. I guess it saves position adjusted to DPI Scale, but restores as not adjusted 

Both can be easily reproduced with QuickStart example (e.g. split container). Repeats on the current prod version and on the current xxx.308 beta. 

Hristo
Telerik team
 answered on 27 Mar 2019
3 answers
230 views

Hello!

I have the following RadTreeView and I would like to know if it's possible to remove duplicate sub-nodes. Here is how my tree looks like.

[MAIN NODE 1]        |        (text = Main Node 1)        |        Name = Node1

    [SubNode1]

    [SubNode1]

    [SubNode2]

[MAIN NODE 2]        |        (text = Main Node 2)        |        Name = Node2
    [SubNode1]
    [SubNode1]
    [SubNode2]

 

How would I loop through all the main nodes and remove all the duplicate child nodes?

I created my main node dynamically through code and do not store their .Name property so I cannot just use RadTreeView.Nodes(MainNode)

Is there something like..

For Each MainNode In RadTreeView1.MainNodes

Loop through and delete child nodes if there is a duplicate

Daica
Top achievements
Rank 1
 answered on 26 Mar 2019
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
ComboBox and ListBox (obsolete as of Q2 2010)
ListView
Chart (obsolete as of Q1 2013)
Form
PageView
MultiColumn ComboBox
TextBox
RichTextEditor
Menu
PropertyGrid
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
Diagram, DiagramRibbonBar, DiagramToolBox
GanttView
Panorama
New Product Suggestions
Toolstrip (obsolete as of Q3 2010)
VirtualGrid
AutoCompleteBox
Label
Spreadsheet
ContextMenu
Panel
Visual Studio Extensions
TitleBar
Documentation
SplitContainer
Map
DesktopAlert
ProgressBar
CheckedDropDownList
Rotator
TrackBar
MessageBox
SpinEditor
StatusStrip
CheckedListBox
Wizard
ShapedForm
SyntaxEditor
TextBoxControl
LayoutControl
CollapsiblePanel
Conversational UI, Chat
DateTimePicker
TabbedForm
CAB Enabling Kit
DataEntry
GroupBox
ScrollablePanel
WaitingBar
ScrollBar
ImageEditor
Tools - VSB, Control Spy, Shape Editor
BrowseEditor
DataFilter
ColorDialog
FileDialogs
Gauges (RadialGauge, LinearGauge, BulletGraph)
ApplicationMenu
RangeSelector
CardView
WebCam
BindingNavigator
PopupEditor
RibbonForm
Styling
TaskBoard
Barcode
ColorBox
Callout
FilterView
PictureBox
VirtualKeyboard
NavigationView
Accessibility
DataLayout
ToastNotificationManager
ValidationProvider
CalculatorDropDown
Localization
TimePicker
ButtonTextBox
FontDropDownList
Licensing
BreadCrumb
Security
LocalizationProvider
Dictionary
Overlay
Separator
SparkLine
TreeMap
StepProgressBar
SplashScreen
Flyout
ToolbarForm
NotifyIcon
Rating
TimeSpanPicker
BarcodeView
Calculator
OfficeNavigationBar
TaskbarButton
HeatMap
SlideView
PipsPager
AIPrompt
TaskDialog
DateOnlyPicker
TimeOnlyPicker
+? more
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Top users last month
Henri
Top achievements
Rank 2
Iron
Iron
Iron
SUNIL
Top achievements
Rank 2
Iron
Iron
Iron
David
Top achievements
Rank 1
Jackson
Top achievements
Rank 1
Iron
Iron
Tim
Top achievements
Rank 3
Iron
Iron
Iron
Want to show your ninja superpower to fellow developers?
Want to show your ninja superpower to fellow developers?