Help with using Dropdown control to access PDF

Posted by: Victor.m.charles.civ on 7 September 2019, 6:24 am EST

  • Posted 7 September 2019, 6:24 am EST

    Hello,

    I'm using the code below in VB.NET to access PDFs from a dropdown control. How do I modify it to work with the ASP.NET C1Dropdown control version? I'm using an ASP.NET MVC application.

    If Trim(ComboBox4.Text) = "Component" Then
    Process.Start(Application.StartupPath & "\Component.pdf")
    End If

    Thanks,

    Victor
  • Replied 8 September 2019, 9:03 pm EST

    Hi Victor,
    The MVC application allows to export FlexGrid to PDF directly at Client Side, you may call the export method at on Button Click or ComboBox selectedIndex Changed.

    Please refer to the following demo sample for reference:
    https://demos.componentone.com/ASPNET/MVCExplorer/FlexGrid/PDFExport

    Also, if you would like to access the PDF from the ServerSide to client-side, you need a callback on ComboBox selected index changed.
    Please refer to the following demo sample of the ComboBox for reference:
    https://demos.componentone.com/ASPNET/LearnMvcClient/C1Input/ComboBox

    Hope it helps!

    Regards,
    Manish Gupta
  • Replied 9 September 2019, 2:30 pm EST

    Thank you. Is it possible to send me sample project along which dlls I need to reference in the project?
    Thanks
  • Marked as Answer

    Replied 9 September 2019, 6:34 pm EST

    Hi Victor,
    Please find the attached sample. The sample required the C1.Web.Mvc dll. C1 MVC edition should be installed on your machine. Alternatively, it can be installed from the Nuget.

    Regards,
    Manish Gupta

    FlexGridFilter-PDF Export-ComboBox.zip
  • Replied 11 September 2019, 6:05 am EST

    Thank You.
Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels