Quantcast
Channel: DevExpress Support Center (Examples)
Viewing all 7205 articles
Browse latest View live

How to generate a document layout from scratch

$
0
0
This example shows the PDF Document Creation API that is used to programmatically generate a document layout.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.


How to attach a file to the document

$
0
0
This example shows how to programmatically attach a txt file to the PDF document.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.

How to programmatically fill a PDF Form with values

How to add a digital signature into a PDF document

$
0
0
This example illustrates how to apply a digital signature to a PDF document.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.


How to protect a PDF document with a password

$
0
0
This example shows how  a PDF document can be protected using both the owner and user passwords, as well as the user permissions.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.


 

 

How to use the PDF printer settings

$
0
0

This example illustrates the application programming interface (API) available in the PDF Document Processor to maintain the document printer settings. This API is provided by the PdfPrinterSettings class.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.

How to extract images from a PDF document at runtime

$
0
0
This example illustrates the use of the GetImages method for obtaining document bitmaps in code by using PdfDocumentProcessor.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.

How to delete pages from PDF

$
0
0

This example illustrates how to use PDF Document Processor  for deleting pages from PDF.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.


How to rotate PDF pages

$
0
0

This example illustrates how to use PDF Document Processor for rotating PDF pages.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.

How to operate a PDF content at runtime

$
0
0

This example demonstrates the capability of a PDF Document Processor to operate a PDF content at runtime.

To extract the text of the currently opened PDF file, click File | Extract Text on the Ribbon toolbar.

To count how many times a word appears in the document text, use the options available in the Word Count toolbar section.

The Universal Subscription or an additional Document Server Subscription is required to use this example in production code. Please refer to the DevExpress Subscription page for pricing information.

How to create a custom theme for shapes in DiagramDesignerControl

$
0
0

Shapes in the Diagram control are colored according to an applied theme. To create a custom theme, add a resource dictionary into your application and add the Theme element into it. 
Each theme should contain a color palette which defines main colors used in a theme. To specify a color palette, add the ColorPalette element into Theme. 

To specify how colors are used in a theme, set the Theme.Effects property. This property accepts the EffectCollection object. EffectCollection defines colors shown in the following gallery:


EffectCollection has the following properties:
-ThemeEffects. Influences colors in the "Theme Styles" group.
-VariantEffects. Influences colors in the "Variant Styles" group. When a shape is created its default color scheme is taken from this group.
-ConnectorEffects. Influences connector colors.
 
To register a custom theme, use the ThemeRegistrator.RegisterThemes method. 

How to: use a custom date-time measure unit in automatic scale mode

$
0
0
This example demonstrates how to specify a custom date-time measure unit in Automatic scale mode.

How to: use a custom numeric measure unit in Automatic scale mode

$
0
0
This example demonstrates how to specify a custom numeric measure unit in Automatic scale mode.

Generated Data Access Layer Based On Data Provided By a WCF Service

Generated Data Access Layer with Entity Framework Code First


Generated Data Access Layer with Entity Framework Database First

How to select/deselect row by clicking it and prevent a selection of other rows from being cleared

$
0
0

This example demonstrates how to create a helper class that allows you to select rows as if the CTRL button is pressed. I.e. rows selection is not cleared when a particular row is clicked. Only a clicked row's state is changed.

Question Comments

Added By: Brian Perrin at: 12/3/2014 8:27:25 AM    

Outstanding!  Select "MultiSelectionHelper.cs" in the first combo below, see bottom section.  CalcHitInfo(), InvertRowSelection(), GetMouseArgs(e).Handled = true.  Thank you!

Added By: Jerther at: 12/23/2015 7:06:54 AM    

I'd like to add that with v15, i've been able to obtain the desired result with only the RowCellCkick event and the following:

gridView.InvertRowSelection(e.RowHandle);  
e.Handled = true;

Added By: Nadezhda (DevExpress Support) at: 12/24/2015 1:52:01 AM    

Hello,

To process your recent post more efficiently, I created a separate ticket on your behalf: How to select row by clicking. This ticket is currently in our processing queue. Our team will address it as soon as we have any updates.

dxDateBox - How to disable particular dates in the calendar

$
0
0

Currently, dxDateBox does not provide API that allows you to disable specific dates: T260958: dxDateBox - Is it possible to disable dates?. However, it is possible to implement a workaround. The main idea is to select elements with necessary content by using jQuery and disable them. To get the information about a particular calendar cell, use the "aria-label" attribute (this is the most convenient way to determine the day of the week for a particular cell) or any other HTML attribute that meets your requirements (for instance, "data-value").

 

To determine the appropriate attribute, inspect the elements in the calendar like it is described in the K18570: How to inspect CSS rules article.

ASPxGridView - Shopping Cart example

$
0
0
This example illustrates how to implement a Shopping Cart functionality based on the ASPxGridView control.

How To: Customize DXTabControl's Content Header, Content Footer And Control Box Areas

Viewing all 7205 articles
Browse latest View live