Link to home
Start Free TrialLog in
Avatar of rctems
rctemsFlag for Australia

asked on

How do I position items in Infragistics.Documents.Report

How do I position items in Infragistics.Documents.Report

Do I need to create a flow object and add columns?
Avatar of rctems

ASKER

I think I have to use flows and columns?

Ryan
yes you can try using flows. Are you having any problems using flows ??
Avatar of rctems

ASKER

Learning as I go, do you have any example code?

-R
Did you check out the links i provided? They seem to be having a lot of example code
Avatar of rctems

ASKER

// Add a new Rectangle to the Site's shape factory.
Infragistics.Documents.Report.Shapes.IRectangle rectangle =   shapesSite.Shapes.AddRectangle();
// Fill the rectangle with the color green.
rectangle.Brush = Brushes.Green;
// The outline of the rectangle will be black.
rectangle.Pen = Pens.Black;
// Set the height and width of the rectangle.
rectangle.Height = 100;
rectangle.Width = 400;
// Round the corners of the rectangle.                  
rectangle.Radius = 5;
// Place the rectangle on the Site at the coordinates 0,0.
// This will place the rectangle's upper-left point here.
// The same goes for all other binding rectangles of shapes.
rectangle.X = 0;
rectangle.Y = 0;

It looks like I can XY a rectangle on a canvas, is this for pdf ? can I XY text?
Avatar of rctems

ASKER

In C#:

// Draw a Rectangle with a Hyperlink inside.
canvas1.StartHyperlink(1, 0, 10);
canvas1.Pen = new Pen(Colors.Red, 5);
canvas1.Brush = new SolidColorBrush(new Color(255, 240, 240));
canvas1.DrawRectangle(50, 50, 150, 100, PaintMode.FillStroke);
canvas1.AddHyperlinkArea(50, 50, 150, 100);
canvas1.EndHyperlink();

// Add text to the rectangle (more accurately, overtop the rectangle).
canvas1.Font = new Font("Times New Roman", 18, FontStyle.Italic);
canvas1.Brush = Brushes.BlueViolet;
canvas1.DrawString(70, 90, "Go to page ¹2");


Looks like I can if I use a string method. But can I use canvas for pdf or is it only xps?
ASKER CERTIFIED SOLUTION
Avatar of surajguptha
surajguptha
Flag of United States of America image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial