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

Reply To: Invalid Excel OpenXml file (*.xlsx).

$
0
0

Any Update? Could you able to reproduce the issue?


assembly name or codebase was invalid.

$
0
0

When running reports I get the following error:

The given assembly name or codebase was invalid. (Exception from HRESULT: 0×80131047) . I had recently upgraded to VS 2008 from VS 2005, I had problems with the mapings in IIS 7, but was able to fix that. This application works on the development machine, but not in production.

Any ideas?

Prescott …

Reply To: assembly name or codebase was invalid.

Blank Page

$
0
0

Greetings,

I have a very simple report being generated which works fine in AR6. After the upgrade to AR7, I dont get anything to print, if anything its just a blank page. Wondering what am I missing in regards.

Here is the original code…

report.UserData = notificationData
report.Run()
report.Document.Printer.PrinterSettings.Copies = noCopies
report.Document.Print(False, False)

Here is the post update to AR7

report.UserData = notificationData
report.Run()
report.Document.Printer.PrinterSettings.Copies = noCopies
report.Document.Printer.Print()

I know the report is getting data, and I have imported the GrapeCity.ActiveReports namespace as suggested by another forum discussion… Still doesnt fly… Anythoughts?

Reply To: C1 components designer error in Visual Studio

$
0
0

Hi Pragati,

I tried uploading the sample project showing the behavior but it never showed up in the thread. I tried again this morning and now it says that it’s a duplicate post.

I’m going to try again.

To get the behavior open the frmTask form, double-click on a button, delete the click event you just created, click back on the frmTask designer tab and you get the behavior.

Thanks.

Chris

C1True DBGrid With Array

$
0
0

Hi ,

In VB6 i have use True DBGrid with XArrayDB concept.What is equivalent for XArrayDB in VB.NET 2008. I heard about can use array concept instead of XArrayDB concept.Please explain how to add values to TrueDBGrid without database and data table.How to add value from array to truedbgrid.Please Provide solution.

Binding Flexgrid and TextBox to DataTable

$
0
0

I’m converting a winforms app to WPF. The winforms app binds both a FlexGrid and TextBox to a DataTable such that navigating the flexgrid also updates the textbox with data from the associated column of the selected row. Here’s the winforms code:

            m_DT = new DataTable();

            // Bind the text box
            txtSolution.DataBindings.Add("Text", m_DT, "Solution");

            // Fill DataTable from Data Adapter
            m_DA.Fill(m_DT);

            // Set the data binding for the grid.
            fgData.SetDataBinding(m_DT, "", true);

How can this be done in WPF? I can use the ItemsSource property of the WPF FlexGrid to bind to the DefaultView of a DataTable, and I can create a binding for the Textbox that initially populates it from a value in the first DataTable row, but navigating the FlexGrid does not cause the TextBox to update. Here’s my current (not working) code:

                // Set the data binding for the FlexGrid.
                fgData.ItemsSource = m_DT.DefaultView;

                // Set the data binding for the TextBox.
                Binding b = new Binding();
                b.Source = fgData.ItemsSource;
                b.Path = new PropertyPath("Solution");
                txtSolution.SetBinding(TextBox.TextProperty, b);

What am I missing?
Thanks.

Reply To: Sorry, the page you tried to reach does not exist

$
0
0

Thanks for your reply Mohita. Could you suggest what permissions we need to apply to what folders on our web server?


Where is the function INDIRECT()?

$
0
0

I need to create an Excel spreadsheet that uses the INDIRECT function but I cannot see any reference to it in the Spread documentation. It is a fundamental function that has been in Excel since at least version 2003.

How do I mimic INDIRECT in a spreadsheet created by FARPOINT and exported for use in Excel?

Reply To: C1DockingTab selection shows the content of different TabPage before OnPaint

$
0
0

Hi Pragati,

I confirm that the problem is not related to the C1DockingTab control, infact I have the same problem with the plain .Net TabControl also.

Thank you for your answer.

Stenio

Reply To: PropertyGrid Problems

$
0
0

Hello Abdias,
Both problems are related.
Thank you for your help, I solved my problem.
I developed a small web application to try and reproduce the error and it worked fine.
In the end it was a line change made by one of my collegues to a control.

Reply To: Custom merge with nodes

$
0
0

Well I managed to get it to work. Thanks for your help – though I had a couple of different cases to deal with so my example is a little more complicated than what you gave. I’m not sure your example would work in all cases. In my example below, I have to get the complete range for cases when a cell that is part of a node is passed in that should be merged with cells below it, and also when a cell that should be merged with a row above (a node) is passed in. Both cases must be accounted for.

        
      public partial class FlexGridCustomControl : C1.Win.C1FlexGrid.C1FlexGrid
      {    
          public override C1.Win.C1FlexGrid.CellRange GetMergedRange(int row, int col, bool clip)
          {
            C1.Win.C1FlexGrid.CellRange cellRange;

            // set flag to use custom data when merging
            _doingMerge = true;

            if (col == _colIndex ||
                col == _countryIndex ||
                col == _commodityIndex ||
                col == _loadIndex ||
                col == _lastIndex ||
                col == _deltaIndex ||
                col == _highIndex ||
                col == _lowIndex ||
                col == _schedIndex)
            {
                if (this.Rows[row].IsNode && this.Rows.Count > row + 1 && (string)this.GetData(row, col) == (string)this.GetData(row + 1, col))
                {
                    cellRange = base.GetMergedRange(row + 1, col, clip);
                    cellRange.r1–;
                }
                else
                {
                    cellRange = base.GetMergedRange(row, col, clip);
                    if (cellRange.r1 > 1 && 
                        this.Rows[cellRange.r1 - 1].IsNode && 
                        (string)this.GetData(row, col) == (string)this.GetData(cellRange.r1 – 1, col))
                    {                        
                        cellRange.r1–;
                    }
                }


            }
            else
            {
                // call base class merging logic (will retrieve data using GetData method)
                cellRange = base.GetMergedRange(row, col, clip);
            }

            _doingMerge = false;

            // return the merged range
            return cellRange;
         }
     }

Craig

Reply To: Assign Image to button in Toolbar issue.

$
0
0

Ok, does 2013 support this feature? Also, do you provide a default set of images for the WPF toolbar like you do for the win forms ribbon and how can I view those images if they are available?

Error on Updating

$
0
0

Hello,

i cannot update the C1Report component,
see attachment,
please help me

ARViewer2: Trying to take a saved RPX and get the Viewer to run the report.

$
0
0

I am using the ARDesigner to allow users to build custom reports. They can edit and run the reporst, using a viewer that’s also on the design form. I save the RPX, when the design form is closed. I am trying to add a second form that only has the ARViewer control on it, so users who don’t have rights to design a report, can open the second form and see an up to date version of the report. But all I currently get is the first detail record that you would see in the design view. I based the loading of the viewer on the code that switches between the viewer and designer, but it’s not reloading the data.

Dim rv As New frmRptView 'form with ARViewer on it.
Dim rpt As New DDActiveReports2.ActiveReport

rpt.LoadLayout <Path to RPX File>
rpt.Run False
rpt.Refresh
                
Set rv.arvRptView.ReportSource = rpt
rv.arvRptView.Refresh

Reply To: Installation problem for C1ActiveXStudio_T2_2007_Setup.exe on Windows 7×86

$
0
0

Just a few more bits of information.
Also installed on this machine are the C1StudioNet_2010v3.msi files.

Today I tried uninstalling and reinstalling each of these packages. I also tried to manually register again but I am getting the same results.

I have Windows 7 x86 Ultimate with UAC disabled installed on a VM Workstation 10.0.1 build 1379776

Reply To: Graphic issues in RDP Sessions with the Ribbon.

$
0
0

Hi Wolfgang,

Sorry, one more question. What the operating system is installed on a machine with XenServer?

Also, if you have a sample that allows to reproduce the issue with repainting C1RibbonForm please send it to me (andreyd@componentone.com) and describe the steps of how can I reproduce the wrong behavior. I can’t promise anything yet. At least, we’ll give it a try.

Thanks.

-Andrey

Reply To: Array Results Using Code

$
0
0

Hi Paul,
Thanks for information, the part about "Array Formula" in the doc isn’t correct, we don’t support it in current version yet, maybe support it in future release. Sorry for confusion.
As for LINEST, it is array supported, means result of the function is an array. Here is a sample code to get result of the function by code, please try it.

FpSpread1.ActiveSheetView.RowCount = 10;
            FpSpread1.ActiveSheetView.ColumnCount = 6;
 
            for (int i = 0; i < FpSpread1.ActiveSheetView.RowCount; i++)
            {
                for (int j = 0; j < 2; j++)
                {
                    FpSpread1.ActiveSheetView.Cells.Value = i+j;
                }
            }
 
            FpSpread1.ActiveSheetView.Cells[0, 0].Value = 5;
 
            FpSpread1.ActiveSheetView.Cells[6, 2].Formula = "LINEST(B1:B3,A1:A3,TRUE,TRUE)";
 
            DefaultSheetDataModel dm = FpSpread1.ActiveSheetView.DataModel as DefaultSheetDataModel;
 
            Expression expression = dm.GetExpression(6, 2);
 
            CalcArray value = dm.EvaluateExpression(6, 2, expression) as CalcArray;
            if (value != null)
            {
                for (int i = 0; i < value.RowCount; i++)
                {
                    for (int j = 0; j < value.ColumnCount; j++)
                    {
                        FpSpread1.ActiveSheetView.Cells.Value = value.GetValue(i, j);
                    }
                }               
            }

Hope it helps,
eric

Reply To: c1multidocument, different page numbers for each contained c1printdocument

$
0
0

Hi. I have oposite problem. How can i achive to gave 2 c1Repots to have continous page numbering? report1 to have 1,2,3,4 and report2 to continue 5,6,7…

thanx

Handling the C1GanttView.Tasks.ListChanged Event

$
0
0

I have a handler for the C1GanttView.Tasks.List Changed event.

        AddHandler gv.Tasks.ListChanged, AddressOf TaskList_Changed

In the event args it has the index of the task that changed. My question is: Why can’t I see the changed task in the TasksCollection in this event handler? Does the event fire before the TaskCollection is changed or what? Presumably this event is meant to allow the code to intercept the change and do something about it but if you can’t see the before and after for the change, then what can you do about it in the event handler?

When the GannttView is first displayed it has a bunch of empty tasks in it. If I drag the mouse across one to create a task, then this event is fired and e.ListChangedType = ListChangedType.ItemChanged. In this example I want to negate the user’s mouse drag by just making the task an empty task again.

 Private Sub TaskList_Changed(ByVal sender As System.Object, ByVal e As ListChangedEventArgs)
        If  e.ListChangedType = ListChangedType.ItemChanged Then
            mbChangingTasks = True
            If e.OldIndex = e.NewIndex Then
                gv.Tasks.Item(e.OldIndex) = New C1.Win.C1GanttView.Task
            End If
        End If
    End Sub

If I debug and set a watch on gv.Tasks.Item(e.OldIndex) what I see doesn’t reflect any of the change the user made.

I just get a NullReferenceException. I can’t tell on what but it appears to be somewhere in the C1GanttView internals. Sorry for this messy exception description:

at C1.Win.C1GanttView.Task.set_Start(Nullable`1 value)
at C1.Win.C1GanttView.Task.set_GridStart(Nullable`1 value)
at C1.Win.C1GanttView.ax.b(Boolean A_0)
at C1.Win.C1GanttView.ax.b(MouseEventArgs A_0)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.DebuggableCallback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
at System.Windows.Forms.UnsafeNativeMethods.DispatchMessageW(MSG& msg)
at System.Windows.Forms.Application.ComponentManager.System.Windows.Forms.UnsafeNativeMethods.IMsoComponentManager.FPushMessageLoop(Int32 dwComponentID, Int32 reason, Int32 pvLoopData)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoopInner(Int32 reason, ApplicationContext context)
at System.Windows.Forms.Application.ThreadContext.RunMessageLoop(Int32 reason, ApplicationContext context)
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.OnRun()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.DoApplicationModel()
at Microsoft.VisualBasic.ApplicationServices.WindowsFormsApplicationBase.Run(String[] commandLine)
at TestGanttDragError.My.MyApplication.Main(String[] Args) in 17d14f5c-a337-4978-8281-53493378c1071.vb:line 81
at System.AppDomain._nExecuteAssembly(Assembly assembly, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()

Viewing all 14170 articles
Browse latest View live


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