• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 1537
  • Last Modified:

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?
  • 4
  • 4
1 Solution
rctemsAuthor Commented:
I think I have to use flows and columns?

yes you can try using flows. Are you having any problems using flows ??
Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

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

Did you check out the links i provided? They seem to be having a lot of example code
rctemsAuthor Commented:
// 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?
rctemsAuthor Commented:
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);

// 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?
>> It looks like I can XY a rectangle on a canvas, is this for pdf ? can I XY text?
>>Looks like I can if I use a string method. But can I use canvas for pdf or is it only xps?
Yes the whole document class in Infragistics is for both PDF and XPS
The Infragistics Document Engine is a complete, self-contained code library, allowing you to generate exceptional reports in both Portable Document Format (PDF) and XML Paper Specification (XPS) format.
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: Python 3 Fundamentals

This course will teach participants about installing and configuring Python, syntax, importing, statements, types, strings, booleans, files, lists, tuples, comprehensions, functions, and classes.

  • 4
  • 4
Tackle projects and never again get stuck behind a technical roadblock.
Join Now