Hi,
I'm using Telerik version 2020.3.918.1, in Visual Studio version 16.1.1, and getting the following error when trying to export a radgridview to excel in VB.net:
System Entry Point Not Found.
on the line: spreadExporter.RunExport(fileName, exportRenderer)
I am able to export using Telerik export process using a solution that Dess provided on another thread, but it was in C#. When I change the code to VB, and use the same references, I get this error. I get the same error when I create a quick project from scratch (add a grid, load it, add references, and export...) (Code below)
Any ideas? Thanks, Evan
References include: Telerik.WinControls, Telerik.WinControls.GridView, Telerik.WinControls.UI, Telerik.Common, and Telerik.Export
-----------------------------------------------------------------------------------------------
Imports Telerik.WinControls.Export
Private Sub Button2_Click(sender As Object, e As EventArgs) Handles Button2.Click
'Dim spreadExporter As GridViewSpreadExport = New GridViewSpreadExport(RadGridView1)
'Dim exportRenderer As New SpreadExportRenderer()
'spreadExporter.RunExport("exportedFile.xlsx", exportRenderer)
'Dim exportFile As String = "..\..\exportedData.xlsx"
'Using ms As New System.IO.MemoryStream()
' Dim exporter As New Telerik.WinControls.Export.GridViewSpreadExport(Me.RadGridView1)
' Dim renderer As New Telerik.WinControls.Export.SpreadExportRenderer()
' exporter.RunExport(ms, renderer)
' Using fileStream As New System.IO.FileStream(exportFile, FileMode.Create, FileAccess.Write)
' ms.WriteTo(fileStream)
' End Using
'End Using
Dim fileName As String = "..\..\exported" & DateTime.Now.ToLongTimeString().Replace(":", "_") & ".xlsx"
Dim spreadExporter As GridViewSpreadExport = New GridViewSpreadExport(Me.RadGridView1)
Dim exportRenderer As SpreadExportRenderer = New SpreadExportRenderer()
'exportRenderer.WorkbookCreated += exportRenderer_WorkbookCreated
spreadExporter.ExportVisualSettings = True
spreadExporter.RunExport(fileName, exportRenderer)
Process.Start(fileName)
End Sub
Hi all,
I'm trying to customize an item,but I'm stuck, I hope someone could help...
What I need is to show inside my PropertyGrid a value (a string) with a button aside (the typical [...] ).
Clicking the button will open up a custom form, from which a new value can be selected.
So something like the following code, which I've found in another thread:
private void RadPropertyGrid1_EditorRequired(object sender, PropertyGridEditorRequiredEventArgs e)
{
if (e.Item.Name == "DatoStringa")
{
var editor = new PropertyGridBrowseEditor();
var el = editor.EditorElement as RadBrowseEditorElement;
el.DialogType = BrowseEditorDialogType.FolderBrowseDialog;
e.Editor = editor;
}
}
That's fine, but I need a brand new form, not a predefined one.
Is this possible?
Thank you!
Hi,
I currently develop an application on Windows 10 on a tactile device uses a RadPageView (explorerBar mode).
I want to use gesture to control the scroll, i set the enableGesture to Pan.
And in PanGesture event, i have the code :
If
CType
(
CType
(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Visibility = ElementVisibility.Visible
Then
If
CType
(
CType
(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Value + e.Offset.Height >=
CType
(sender, RadPageView).VerticalScroll.Minimum
And
_
CType
(
CType
(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Value + e.Offset.Height <=
CType
(sender, RadPageView).VerticalScroll.Maximum
Then
CType
(sender, RadPageView).VerticalScroll.Value =
CType
(
CType
(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Value + e.Offset.Height
End
If
CType
(
CType
(sender, RadPageView).GetChildAt(0).GetChildAt(3), Telerik.WinControls.UI.RadScrollBarElement).Value += e.Offset.Height
End
If
Only the scroll bar moves, not the control
Thanks for your help :)
NB : I'm using Q1-2015
I've looked all over but haven't been able to find VisualStyleBuilder's source code. Is there any chance I could download the source code to use to build in-house tools with?
Thanks - Jason
Hello & Thanks ;
I have written a KidSafeBrowser in vs vb.net .vb , but it uses IE11 , which has too many limitations .
So I am looking into Chromium & others .
Does Telerik WinForms use Chromium ?
Thanks for your Help...
I have a RadGridView with some groupings and summery rows.
is it possible to show summary values in group row (instead of adding extra row in top/bottom)? Please refer to attached image.
Note: i want do that in Excel output too.
Thanks so much
Good day,
I merged document file using the following code which was successful.
Please how can I split it into two columns l ike in book form? Such that it will have two columns left and right with a vertical line at the center of each page (I.e. Divid each page into two columns with a vertical line at the center) without any third party dll file or assembly file.
Thank you.
Obi
Dim missing As Object = System.Type.Missing
Dim pageBreak As Object = Microsoft.Office.Interop.Word.WdBreakType.wdSectionBreakNextPage
Dim outputFile As Object = outputFilename
Dim wordApplication As Microsoft.Office.Interop.Word._Application = New Microsoft.Office.Interop.Word.Application()
Try
Dim wordDocument As Microsoft.Office.Interop.Word.Document = wordApplication.Documents.Add(missing, missing, missing, missing)
Dim selection As Microsoft.Office.Interop.Word.Selection = wordApplication.Selection
Dim documentCount As Integer = filesToMerge.Length
Dim breakStop As Integer = 0
For Each file As String In filesToMerge
breakStop += 1
selection.InsertFile(file, missing, missing, missing, missing)
If insertPageBreaks AndAlso breakStop <> documentCount Then
selection.InsertBreak(pageBreak)
End If
Next
wordDocument.SaveAs(outputFile, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing, missing)
wordDocument = Nothing
Catch ex As Exception
Throw ex
Finally
wordApplication.Quit(missing, missing, missing)
End Try
The day of the week (S M T W T F) is squished and I can't for the life of me figure out how to adjust it (see attached image).
Any help would be greatly appreciated. Thanks!
Hi,
The scroll buttons of the Page view, are small especially when we put an image( 100 px width ) in the Page view.
How can I make the scroll button occupy more height: all available height ?
Is it also possible to have the left scroll on the left side and the right scroll on the right side rather then both on same side next to each other ?
Please find attached an example: the current status is : only button circled in yellow can be clicked, but I want to have a button in the size of the red rectange.
Thanks in advance,
Fahmi
I'm trying to set the tooltiptext for a radListView item. I add the item to the listview as follows:
Dim myitem As New ListViewDataItem("Text to display")
myitem(1) = "Text to use for tooltip"
lvwAttach.Items.Add(myitem)
I 'm using TooTipTextNeeded to set the tooltip text:
Private Sub lvwAttach_ToolTipTextNeeded(sender As Object, e As ToolTipTextNeededEventArgs) Handles lvwAttach.ToolTipTextNeeded
Dim item As SimpleListViewVisualItem = TryCast(sender, SimpleListViewVisualItem)
If item IsNot Nothing Then
e.ToolTipText = item.Text
End If
End Sub
This shows the item's text as the tooltip but I want to show the text from the 1st subitem. How do I get the text for the 1st subitem from the SimpleListViewVisualItem object?