Spread 8.0 Documentation
Example
Support Options

Glossary Item Box

Example


The following example loads a picture.

C++

SS_CELLTYPE ct;

// Load wmf file

HANDLE h = spr->LoadPicture("C:\\Program Files\\CalObjX3\\Samples\\Files\\clouds.wmf", SS_PICTURE_TYPE_WMF);

spr->SetTypePictureHandle(&ct, VPS_HANDLE, h, 0, true);

// Set cell type

spr->SetCellType(1, 1, &ct);

// Set column width

spr->SetColWidth(1, 60);

// Set row height

spr->SetRowHeight(1, 140);

// save from cell to file

spr->SavePicture(h,0, "C:\\test.jpg", SS_PICTURE_TYPE_JPEG);

Copyright © GrapeCity, inc. All rights reserved.