PC Review


Reply
Thread Tools Rate Thread

Crystal Report: Set the position of a line in runtime

 
 
=?Utf-8?B?S2V2aW4=?=
Guest
Posts: n/a
 
      24th May 2005
Hi, didn't expect that i would encounter problems while doing this but ...
Well, I'm working on a project which reports with different layout and fields
are generated with one generic template. I have no problem with setting the
width and position of the fields (and suppressing unused ones). What I would
like to add to the report are vertical lines to separate the fields. I've put
some vertical lines in arbitary position in the template. However, in the
code, when I try to set the position of the object, it returns me an
exception saying:

<Additional information: The line object's coordinates are not valid. Only
vertical or horizontal lines are supported.>

Here's the code that generates the error

ReportObject testLineObject =
reportDoc.ReportDefinition.ReportObjects["Line4"];
testLineObject.Left = 100;

Please help ~~~ Thanks in advance!!

 
Reply With Quote
 
 
 
Reply

Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to position embedded Crystal Report in browser? JB Microsoft ASP .NET 0 17th Jun 2010 12:50 AM
Crystal Report in runtime =?Utf-8?B?TUFU?= Microsoft C# .NET 2 20th Dec 2005 09:12 PM
Re: Building a crystal report at runtime; possible? Cor Ligthert Microsoft Dot NET 0 15th Apr 2004 11:50 AM
Changing the line colors of a Crystal Report at runtime? Ken Microsoft Dot NET Framework Forms 0 24th Sep 2003 08:59 PM
Crystal Report Runtime DLL Chrysan Microsoft Dot NET Framework 1 22nd Jul 2003 02:15 PM


Features
 

Advertising
 

Newsgroups
 


All times are GMT +1. The time now is 09:40 AM.