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

Reply To: Update Custom Label Position

$
0
0

Hi,

We are working on it and will update you as soon as we are done with it.

Thanks,
Akshay


Reply To: Scrollable Legends with Winforms C1Chart

$
0
0

Hi,

We are sorry to mention however, FlexChart for Winforms also does not support scrollbar in legend area. We have escalated it is an enhancement request to the concerned team and they will incorporate it as they find it feasible.

Thanks,
Akshay

Reply To: Excel sheet viewer via Flex Report

$
0
0

Hi,
well the main question is how to generate the picture?
I have written some code that fills a XLSheet object of a specific C1XLBook. The output looks fine, but I would like to present it to the user without Excel, i.e. in a Winform etc.

- One idea would be to convert the context to a DataTable object and use this as data source of a DataGridView etc. but it does not look very nice because of merged cells, formatting etc.

- An other possibility would be to 'print' the content of the XLSheet object into a pdf file or better into an object that contains the content as a picture and show this via FlexReport. Is there any way to do this in the Excel framework that is part of ComponentOne?

Best wishes
Markus

Setting RibbonComboBox SelectedIndex

$
0
0

HI - I have a Ribbon in which I have a RibbonComboBox. When my form loads, I dynamically add Items to the RibbonComboBox like so:

For Each filename In nameList
Dim curFileName As String = filename.FullName
cboBasicNames.Items.Add(Path.GetFileNameWithoutExtension(filename.ToString))
Next

Then later I want to set the selected index based on the context, like so:

cboBasicNames.SelectedIndex = cboBasicNames.Items.IndexOf(activeCount.activeFile.Name)

- the "Name" is a String, just like the items that I add to the combobox.

This all seems to work, except that the code to set the selected index is also removing the other items in the combobox.
If I comment out that line, then when I run my application I can click the dropdown of the combobox and all the items are there. But with that line, when I click the dropdown, there are no other items in the combobox to be selected!

Why is it behaving this way? Is it a bug? Or is there a different way I should be doing this that will work as expected without removing the other items?
Thank you!

Reply To: Menu dropdown alignment

$
0
0

Thanks, this solution solved my issue.

Reply To: Dividing the grid using splits for specific condition

$
0
0

Hi Sonu,

Thank you for your response.
I tried the above code. But for some reason all my splits display the same data. I want to make them independent and apply auto filter on the same. Am I missing anything in the properties section?

Thanks in advance.

Regards,
Kinjal Thakkar

Edit Flexgrid from 2nd form

$
0
0

Hi would you have any samples of editing a flexgrid from a 2nd form.

I have 2 forms, Form A has text boxes which adds data to the Mysql database.

Form B includes the flexgrid.

When I want to edit a row in the flexgrid (Form B) I want Form A popping up so I can edit the form and save with new details.

Customsort and Filter with bound c1.wpf.flexgrid.4

$
0
0

Hello,

In the attach example you can see the Problem with the sort Symbol.
When you click on SP0 with normal Sorting it Shows a sort Symbol. It is ok.
When you activate the Checkbox for customsort (only on SP0) you can see
the sorting is ok, but there is no more sort Symbol in the columnheader?


Reply To: Trouble linking subReport to Main Report

$
0
0

You're using a MS Access Database and I am not. There is a relation foreign key set in the DataSet in memory for the purposes of reporting. ComponentOne was implemented by the previous programmer very poorly and I am attempting to remove all that overhead! I stripped the report definition down to 1 subreport for the purposes of resolving this issue. I intentionally did not add any fields to the subreport as to not inject anything into resolving this relational issue. Attached you will find my subreport.

Reply To: Trouble linking subReport to Main Report

$
0
0

I did notice a subtle difference with you coding in that you set the connectionstring property to null and I had set the property to "". I have changed that and am testing the changes to see if that makes a difference.

Reply To: Trouble linking subReport to Main Report

$
0
0

The relationship is Course.Course_ID = Student.Course_ID. I verified these columns. These columns are important for the foreignkey constraint in the DataSet.

Reply To: Trouble linking subReport to Main Report

$
0
0

Setting the connectionstring property to null had no effect on the outcome of reults.

Reply To: Trouble linking subReport to Main Report

$
0
0

Correction.... the relationship is Course.Student_ID = Student.Student_ID.

Sorry for the mixup. I did verify all columns and, when I observe the c1Rpt object, I do find the following layout associated with the subreport:

In the DataSourceInfo property I find Student_ID as the 2nd field DataType is string. Is the subreport position sensitive in the fields list? Is it required that Student_ID be the first column in the Course structure?

Reply To: Trouble linking subReport to Main Report

$
0
0

I don't know if a stack dump will help or not???? I'm trying to get you all the information needed to resolve this issue!

System.Data.EvaluateException was unhandled
HResult=-2146232032
Message=Cannot find column [Course.Student_ID].
Source=C1.C1Report.4
StackTrace:
at C1.C1Report.C1Report.#VUd(Exception exception, Boolean fatal)
at C1.C1Report.C1Report.#VUd(Exception exception, Boolean fatal)
at C1.C1Report.DataSource.#URd(Boolean quiet)
at C1.C1Report.C1Report.RenderFirstPass(Boolean releaseDocument)
at C1.C1Report.C1Report.#2Ud()
at C1.C1Report.C1Report.#0Ud()
at C1.C1Report.Field.#oTd(Double x, Double y, Boolean measure)
at C1.C1Report.Field.Render(Layout layout, Double x, Double y, Boolean measure)
at C1.C1Report.Field.Render(Layout layout, Double x, Double y)
at C1.C1Report.Section.Render(Boolean keepPage, Group ownerGroup)
at C1.C1Report.Section.Render()
at C1.C1Report.Group.Render()
at C1.C1Report.C1Report.#AJc()
at C1.C1Report.C1Report.RenderFirstPass(Boolean releaseDocument)
at C1.C1Report.C1Report.#2Ud()
at C1.C1Report.C1Report.#0Ud(ExportFilter filter, Boolean reuse)
at C1.C1Report.C1Report.RenderToFile(String fileName, FileFormatEnum fmt)
at WebEDGE_Student.Controllers.ReportRender.RenderToFile(String strFileName) in C:\Projects\WebEdge Student\WebEDGE Student\Controllers\ReportController.cs:line 188
at WebEDGE_Student.Controllers.PDF.SendPDF2Location(SaveFileDialog SFD) in C:\Projects\WebEdge Student\WebEDGE Student\Controllers\Output.cs:line 156
at WebEDGE_Student.Controllers.DynamicToolStripMenuItem.send2Output(String selection, String ArchiveRootPath, String formDocID, String DocDefID, ToolStripProgressBar tsprgStatus) in C:\Projects\WebEdge Student\WebEDGE Student\Controllers\AppController.cs:line 146
at WebEDGE_Student.Controllers.UIController.send2Output(DynamicToolStripMenuItem menuItem, String DocDefDescription, ToolStripProgressBar tsprgStatus) in C:\Projects\WebEdge Student\WebEDGE Student\Controllers\AppController.cs:line 772
at WebEDGE_Student.WorkflowMonitor.tsDDBPresentation_Click(Object sender, EventArgs e) in C:\Projects\WebEdge Student\WebEDGE Student\Workflow.cs:line 296
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripMenuItem.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.ToolStripDropDown.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.ToolStripDropDown.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(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(IntPtr 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 System.Windows.Forms.Application.Run(Form mainForm)
at WebEDGE_Student.Controllers.AppController.Main() in C:\Projects\WebEdge Student\WebEDGE Student\Controllers\AppController.cs:line 65
at System.AppDomain._nExecuteAssembly(RuntimeAssembly assembly, String[] args)
at System.AppDomain.ExecuteAssembly(String assemblyFile, Evidence assemblySecurity, String[] args)
at Microsoft.VisualStudio.HostingProcess.HostProc.RunUsersAssembly()
at System.Threading.ThreadHelper.ThreadStart_Context(Object state)
at System.Threading.ExecutionContext.RunInternal(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state, Boolean preserveSyncCtx)
at System.Threading.ExecutionContext.Run(ExecutionContext executionContext, ContextCallback callback, Object state)
at System.Threading.ThreadHelper.ThreadStart()
InnerException:

Sizeable content of panel

$
0
0

Hi,
I would like to add some content (for example a FlexGrid etc.) on some Winform dialog which should scale the components in a way that it always fits to the size of the Winform. Off cause it will be unreadable if the WinForm is to small, but the user should decide the size of the form without using scrollbars. I try c1Sizer, c1Zoom, c1ZoomPanel, but none of them supports a scaling factor < 1. Any idea?

Best wishes
Markus Wendt


Row Parent Node

$
0
0

I would like get the parent node row index for a non-Node row. My method is iterate the Nodes and check the row index. In the code below, I assume there is only one level node. I wonder if there any more direct and efficient way. Thanks.

int GetParentNode(int rowIndex)
      {
          int nodeIndex = -1;
          foreach (Node node in fgMarket.Nodes)
          {
              if (node.Row.Index < rowIndex)
                  nodeIndex = node.Row.Index;
              else
                 break;
          }
          return nodeIndex;
      }

Saving From Menu

$
0
0

A C1 numeric box has focus and a number is entered. When the user selects an option, save, from the C1 Main menu the numeric box does not update and neither value or text holds the entered value and both report 0.

I have found a work around by setting the focus from the numeric box to another control after which the entered value can be accessed from the numeric box.

Reply To: MultiDocument for FlexReport

$
0
0

Hi,

I understand the difficulty that you might have to face while upgrading to FlexReport in this scenario. Please give me some time to talk to the Product Manager. Will get back to you with actual road map for this feature shortly.

Thanks,
Pragati

Reply To: Saving From Menu

$
0
0

Hi Garry,

in the "Save" click handler, you might try to call "Validate" of the form:



if (this.Validate() == false)
{
  return;
}

I hope that this works for the C1 numeric box. If it does, it should trigger a "commit" of the input value to the control.

Best regards

Wolfgang

Reply To: C1datagrid item template

$
0
0

Hello,

It seems to be an implementation issue and is quite difficult for me to comment out on your issue without replicating the same. Could you please share a stripped down sample replicating the issue along with the steps to reproduce so that I can debug the exact issue and can assist you accordingly.

Regards,
Prashant

Viewing all 14170 articles
Browse latest View live


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