Coder Social home page Coder Social logo

devexpress-examples / how-to-export-aspxdataview-control-content-to-a-pdf-file-t103390 Goto Github PK

View Code? Open in Web Editor NEW
0.0 57.0 0.0 47 KB

.NET, ASP.NET Web Forms, Navigation, Layout & Multi-Purpose Controls

License: Other

C# 23.46% ASP.NET 76.54%
dotnet navigation layout multi-purpose-controls asp-net

how-to-export-aspxdataview-control-content-to-a-pdf-file-t103390's Introduction

Files to look at:

How to export ASPxDataView control content to a PDF file

[Run Online]

This example demonstrates how to export ASPxDataView control content to a PDF file. Currently, ASPxDataView does not support data export, therefore we suggest a workaround with two ASPxDataViews. One of the two ASPxDataView's has ASPxDataView.ClientVisible set to False and we export its data, the second ASPxDataView is only used to display data we export. In this example, we also use the ASPxHiddenField control to transfer data from the client side to the server. We handle the following events:  ASPxDataView.CustomCallbackASPxClientDataView.BeginCallbackASPxClientDataView.EndCallbackASPxButton.ClickASPxClientButton.Click.

First, we send a callback to an invisible ASPxDataView on ASPxClientButton.Click, then ASPxDataView html is obtained and written to ASPxHiddenField for each page on ASPxClientDataView.BeginCallback. Finally, a next callback is sent by handling the ASPxClientDataView.EndCallback event. The html-markup of every ASPxDataView page is first written to the session and then to a response using RichEditDocumentServer component on the server side.


how-to-export-aspxdataview-control-content-to-a-pdf-file-t103390's People

Contributors

devexpressexamplebot avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.