Quantcast
Channel: Our ComponentOne » All Posts
Viewing all 14170 articles
Browse latest View live

Reply To: C1TabControl memory leaks


Reply To: C1TabControl memory leaks

$
0
0

No, it’s not yet resolved in the latest version (2014v1). In fact, I just submitted a support request this morning to ask about the status of this bug. Will post something here when I hear back.

Strange Null reference error from ClPrintPreviewControl

$
0
0

Has anyone seen this error? Any idea what may be causing it? I’ve installed my application on several machines and it works fine on all but 2, they show this error when attempting to render a report.

Object reference not set to an instance of an object. at
System.Drawing.Printing.PreviewPrintController.OnEndPrint(PrintDocument
document PrintEventArgs e)
at C1.ClPreview.ClPrintController.OnEndPrint(PrintDocument document
PrintEventArgs e)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.PrintO
at C1.ClPreview.ClPrintController.MakePagelmageList(PrintDocument doc)
at #cte.#yte.#FGeO
at #cte.#yte.#KDeO
at C1.Win.ClPreview.ClPreviewPane.#WBe(Object value)
at C1.Win.ClPreview.ClPreviewPane.set.Document(Object value)
at C1.Win.ClPreview.ClPrintPreviewControl.set_Document(Object value)

Locking Cells, Columns

$
0
0

My goal is to block user from modifying data in certain columns. So I assumed that doing

grid.ActiveSheet.Columns[3].Locked = true;

should do the job. Unfortunately it doesn’t.
Operations seems to be in opposite order, as shown by http://helpcentral.componentone.com/NetHelp/SpreadWPF/webframe.html#GrapeCity.WPF.SpreadSheet.Data~GrapeCity.Windows.SpreadSheet.Data.Cell~Locked.html, i.e. lock entire Sheet

grid.ActiveSheet.Protect = true

and then unlock all other columns

            var columnsToSkip = new[]{3,4,5};
            for (int i = 0; i < columnsToSkip.Length; i++) {
                var c = columnsToSkip;
                grid.ActiveSheet.Columns1.Locked = false;
            }
            grid.Invalidate();

Am I missing something? Why simply setting Locked property to true doesn’t do the job? I consider this a bug.

Reply To: Locking Cells, Columns

$
0
0

For some reason editor didn’t take my code correctly so I’m trying again

var columnsToSkip = new[]{3,4,5};
            foreach (int t in columnsToSkip) {
                grid.ActiveSheet.Columns[t].Locked = false;
            }

Localization of AR* files

$
0
0

There is a how to localize AR8 files posted on Component One website. I am trying to follow it but got stuck under the step highlighted in bold below:
"Ensure that the path in ProgamFilesAssemblyDir is correct for your installation."
When I open the winviewer.bat file in a text editor, I do not see any line named : "ProgamFilesAssemblyDir".

I have copied the .bt file text below:

———————————————————————————————–

if not "%ProgramFiles(x86)%" == "" goto GetProgramFilesPathx86
:GetProgramFilesPath
set ProgramFilesPath=%ProgramFiles%
goto START
:GetProgramFilesPathx86
set ProgramFilesPath=%ProgramFiles(x86)%

:START

set ProjectName=WinViewer
set dllName="GrapeCity.ActiveReports.Viewer.Win.v8.resources.dll"
set Culture="fr-FR"
set Version="8.0.1.0″
set PublicKey=..\..\publickey.snk
set ProductPath=%ProgramFilesPath%\Common Files\ComponentOne\ActiveReports 8
set BaseNamespace=GrapeCity

call Localize.bat

Reply To: Questions about Reporting tool

$
0
0

Hello Mandar ,

I apologize for the late response. The chart series support annotations (line and text type),
i think it is most simple way to add the static lines to the chart.
Annotations can be added at run time and in design time.
I have attached a screenshot of the annotations part in chart customization dialog.

Thanks,
Sergey Romanov.

Reply To: PDF Export Arabic Characters Issue

$
0
0

Hi

I am currently using the evaluation version of ActiveReports trying to see whether it properly supports Arabic.

When displaying the report in the webviewer the report (with arabic text) is showing correctly. But when I export to pdf, I find the arabic text is not exported.

I have tried using special fonts ("Arabic Transaparent") and when exported to PDF the value prints, but the words are not formatted correctly and letters are reversed (going right to left instead of left to right).

Please let me know if this can be resolved


Reply To: PDF Export Arabic Characters Issue

$
0
0

@Ruya_Malek said:
Hi

I am currently using the Data Dynamic ActiveReports for .Net 2 server pack 2 trying to see whether it properly supports Arabic.

When displaying the report in the webviewer the report (with arabic text) is showing correctly. But when I export to pdf, I find the arabic text is not exported.

I have tried using special fonts ("Arabic Transaparent") and when exported to PDF the value prints, but the words are not formatted correctly and letters are reversed (going right to left instead of left to right).

Please let me know if this can be resolved

Remove an image control at run time

$
0
0

Hi how to remove the image control or any control at run time?

var modifiedPic = (DataDynamics.ActiveReports.Picture)reportSection.Controls[controlIdx]; modifiedpic.ResetImage() only resets the image but doesn’t remove the control. I also tried modifiedPic.Image.RemovePropertyItem(771); This didn’t work either. Is there any way to remove the control at runtime?

Also I want to set the control.Location.X value. How can this be achieved?

Reply To: Remove an image control at run time

$
0
0

reportSection.Controls.Remove(modifiedPic); was able to remove the control using this code

Farpoint grid not working properly with IE9

$
0
0

Hi,

I am using far point grid with asp.net application. I want to enter data manually in farpoint excel spreadsheet. Its working fine with IE8, IE 10 and IE 11 but on IE9 i am not able to enter data manually.

I am using 6.0.3503.2008 version of farpoint excel. Is there any way to make it work on IE9?

Thanks,
Fenil

Reply To: How to pass parameters to rpx file

$
0
0

Hello ,

if you load the rpx file to the SectionReport instance for rendering,
i would recommend to add the custom parameter to the parameters collection,
this parameter will be accessible in the report script.
Here is a sample of code:

        Dim ar As New SectionReport
        ar.LoadLayout("Report1.rpx")

        Dim parameter As New GrapeCity.ActiveReports.SectionReportModel.Parameter
        parameter.PromptUser = False
        parameter.Key = "p1″
        parameter.Value = ComboBox1.SelectedItem.ToString()
        ar.Parameters.Add(parameter)
        ar.Run()

        Viewer1.Document = ar.Document

so the script will look like:

Sub ActiveReport_ReportStart

Dim sqlString As String = "select * from customers where city =’" + rpt.Parameters.Item(0).Value + "'"
End Sub

also, you can use AddNamedItem method and return the object with needed value to the script.
http://helpcentral.componentone.com/nethelp/AR7Help/OnlineEn/GrapeCity.ActiveReports.v7~GrapeCity.ActiveReports.SectionReport~AddNamedItem.html

Thanks,
Sergey Romanov

Reply To: Binding Flexgrid and TextBox to DataTable

$
0
0

Hello,

You need to implement Element binding for the TextBox object. Bind it to the SelectedItem property of the C1FlexGrid object. Also, specify the Binding Mode as 'TwoWay’ :

  <TextBox Height="40" HorizontalAlignment="Left" Margin="105,245,0,0" Name="textBox1" Text="{Binding SelectedItem, ElementName=c1FlexGrid1, Mode=TwoWay}" VerticalAlignment="Top" Width="314"/>

Here, you also need to make use of an IValueConverter, so as to display the datatable values in your TextBox (since using the above code will display values "System.Data.DataRowView" in your TextBox) as :

  <Window.Resources>
        <l:TestConverter x:Key="converter" />
    </Window.Resources>

 <TextBox Height="40" HorizontalAlignment="Left" Margin="105,245,0,0" Name="textBox1" Text="{Binding SelectedItem, ElementName=c1FlexGrid1, Mode=TwoWay, Converter={StaticResource converter}}" VerticalAlignment="Top" Width="314"/>
 public class TestConverter : IValueConverter
  {
      public object Convert(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
      {
          if (value == null)
              return String.Format(culture, string.Empty, value);
           else
              return String.Format(culture, "{0}", ((System.Data.DataRowView)(value)).Row.ItemArray[5]);
      }
 
      public object ConvertBack(object value, Type targetType, object parameter, System.Globalization.CultureInfo culture)
      {
          throw new NotImplementedException();
      }
  }

Refer to the attached sample implementing the same.

Hope it clarifies.

Regards,
Reema

Reply To: how to display horizonal scrollbar in C1DockTabItem in C1DockControl.

$
0
0

Hello Pallavi,

Please check the case with the latest C1WPFLibrary build : 4.0.20141.391 available at :
prerelease.componentone.com/dotnet40/c1wpflibrary/2014-t1/C1WPFBasicLibrary.4_4.0.20141.391.zip

If the issue persists with the latest build too, then you are requested to share a stripped down sample of your code replicating the issue so that I could debug the issue at my end and provide you with appropriate assistance.

Regards,
Reema


Reply To: C1True DBGrid With Array

$
0
0

Hi,

Similar to XArrayObject used in ActiveX, .NET has arrays built into the .NET framework, which can be substituted and used as an array. There is no migration for XarrayDBObject in .Net.

To achieve similar functionality in .NET platform, you can either:
1. make a data table with data columns and data rows through code. Then, set the datasource property of the grid to the name of the data table.
or,
2. use ArrayList objects.
Please refer to the following forum posts which discuss how to bind the grid to an arraylist:

http://our.componentone.com/groups/topic/arraylist-datasource/

http://our.componentone.com/groups/topic/can-truedbgrid-bind-to-an-arraylist-of-objects/

Thanks and Regards,
Pragati Kaushik

Reply To: Re: Bug in New Version

$
0
0

Hi Sunil,

Unfortunately, I am not very sure about the problem you are currently facing. Could you please elaborate on the same a bit further? What do you want to refer by "a column will be blank. If you re-populate it the data will show up"?

It would be really helpful if you can share a small sample application or the exact steps to recreate the problem at our end.

Also, share the build version with which it worked perfectly fine.

Thanks and Regards,
Pragati Kaushik

Reply To: Farpoint grid not working properly with IE9

$
0
0

Also it is not working in Firefox and Chrome browser. How can i make it workable?

Reply To: Close button gets display for tab item in chart when user tries tro rearrange th

$
0
0

Hello Pallavi,

Please check the case with the latest C1WPFLibrary Build : 4.0.20141.391 available at :
prerelease.componentone.com/dotnet40/c1wpflibrary/2014-t1/C1WPFBasicLibrary.4_4.0.20141.391.zip

Refer to the attached GIF image and the sample demonstrating the behaviour at my end.

If the issue persists with the latest build too then you are requested to share a stripped down sample of your code replicating the issue or make the necessary changes to this sample so that I could debug the issue at my end and provide you with appropriate assistance.

Regards,
Reema

Reply To: How to add chart in the center of the sheetview or near the active cell

$
0
0

Hi Raj,

In order to accomplish your requirements, I would suggest you to write the following code snippet in the CellClick event of Spread and draw a chart at cursor position.

void fpSpread1_CellClick(object sender, CellClickEventArgs e)
        {
            float _fheight = 0;
            float _fwidth = 0;
            fpSpread1.Refresh();
            fpSpread1.SetViewportTopRow(5, e.Row);
            for (int i = 0; i < e.Row; i++)
                _fheight = _fheight + fpSpread1.ActiveSheet.Rows.Height;
            for (int i = 0; i < e.Column; i++)
                _fwidth = _fwidth + fpSpread1.ActiveSheet.Columns.Width; 
            //
            //if you want to delete previous draw chart
            //
            if (chart1 != null)
                fpSpread1.ActiveSheet.Charts.Remove(chart1); 
            chart1 = fpSpread1.ActiveSheet.AddChart(e.Row, e.Column, typeof(XYZLineSeries), 300, 300, (int)_fwidth, (int)_fheight);
        }

Please refer to the attached sample application for complete implementation. Hope it helps.

Thanks and Regards,
Pragati Kaushik

Viewing all 14170 articles
Browse latest View live


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>