Hi,
We are sorry to mention however, this is the limitation of C1Report that the specified report cannot be created using it.
Thanks,
Akshay
Hi,
We are sorry to mention however, this is the limitation of C1Report that the specified report cannot be created using it.
Thanks,
Akshay
Hi Said,
Of course, you can print a report which fetches the values from the .Net application without being bound to any data source.
'Setting up the printer settings
Dim options As C1PrintOptions = New C1PrintOptions()
options.PrinterSettings = New PrinterSettings()
options.PageSettings = New System.Drawing.Printing.PageSettings()
options.PrinterSettings.PrinterName = "Printer Name"
C1FlexReport1.Print(options)
Thanks,
Pragati
Hi,
I forwarded this to concern team. Will get back to you once there is any information from them.
Thanks,
Sonu
Hi,
Thanks for providing the code snippet.
In order to change the background color of the highlighted text you need to handle the Loaded event of the C1NumericBox. In it, get the C1TextBoxBase element from it and set it's SelectionBrush property accordingly.
public class MyCellFactory : CellFactory
{
C1FlexGrid grid;
CellRange rng;
C1NumericBox box;
public override FrameworkElement CreateCellEditor(C1FlexGrid grid, CellType cellType, CellRange rng)
{
var r = grid.Rows[rng.Row];
grid.SelectionChanging += Grid_SelectionChanging;
this.grid = grid;
this.rng = rng;
if (rng.Column == 2 && rng.Row >= 0)
{
box = new C1NumericBox();
box.Loaded += Box_Loaded;
box.Increment = 0.01;
box.Format = "F2";
box.HorizontalAlignment = HorizontalAlignment.Center;
box.VerticalAlignment = VerticalAlignment.Center;
box.ShowButtons = false;
var binding = new Binding("Age") { Source = r.DataItem, Mode = BindingMode.TwoWay };
box.SetBinding(C1NumericBox.ValueProperty, binding);
return box;
}
else
return base.CreateCellEditor(grid, cellType, rng);
}
private void Box_Loaded(object sender, RoutedEventArgs e)
{
C1NumericBox box = (C1NumericBox)sender;
Grid g = (Grid)VisualTreeHelper.GetChild(box, 0);
g = (Grid)g.Children[0];
C1TextBoxBase tb = (C1TextBoxBase)g.Children[1];
tb.SelectionBrush = new SolidColorBrush(Colors.Red);
}
}
Thanks,
Akshay
Hi,
Thanks for providing the code snippet.
The issue seems specific to the application itself. Hence, in order to further investigate on it we request you to please share a stripped down sample application along with a screenshot representing the same.
We also suggest you to please try using the latest builds of C1Winforms that you can download from the links given below:
.Net Framework 2.0: http://prerelease.componentone.com/dotnet20/c1winforms/2017-t1/C1WinForms.2_2.0.20171.248.zip
.Net Framework 4.0:http://prerelease.componentone.com/dotnet40/c1winforms/2017-t1/C1WinForms.4_4.0.20171.248.zip
Thanks,
Akshay
Thank you, Akshay! You helped me - this method is work
Hi Pragati,
Thank you for the quick reply. But how to send the value to each field that schould be printed in the Report. It is better if there is a sample how to do.
I will explain a Little bit:
1) I need to print one FlexReport. It is one page and all the values i read them from a Flexgrid and i must send them to the Report to be printed. The question is how to do?
2) Sometimes i need to send a fix value that should be printed in a header/footer section.
Best regards
Said
Thanks
Hi Pragati,
I would like to ask one more question: do you have an option to hide column header (fixed rows) of the copied grid without hiding original grid's fixed (suspend sync between two grid) ?
Hope that will respond soon.
Regards,
Trung Nguyen
How do we take the following code to controller:
<c1-items-source source-collection="@Model.CountrySalesData"></c1-items-source>
<c1-flex-chart-series binding="Sales" name="Sales"></c1-flex-chart-series>
<c1-flex-chart-series binding="Expenses" name="Expenses"></c1-flex-chart-series>
<c1-flex-chart-series binding="Downloads" name="Downloads"></c1-flex-chart-series>
Hello,
I am having an issue with the license nag screen.
background:
Our project is using the C1 for winforms controls and is hosted from Tortoise SVN and everything (set up of reference, .licx, etc) is just fine and no license nag screen is prompting from the environment of my boss but for an unknown reason the nag screen prompts on my environment during rebuild and launching of the application even we have the same set up.
Before i personally asked here on the forum I already tried researching and trying some of the troubleshooting steps provided from previous related issues here.
So far these are the things i tried:
***The .licx file has the right values in it and the needed dlls are properly referenced(same as the values from my boss' environment).
1. Remove the "Version, Culture and PublicKeyToken" values from all the entries of the license files.
2. Set "SpecificVersion' of the assemblies to False.
3. Also used C1ProjectUpdater just to be sure.
4. Repair the installation of ComponentOne studio via control panel.
5. Update C1 for winforms to latest version.
6. Created a sample project that includes a C1 control (dragged the control on the form designer and made sure that a license file was automatically created).
- on every item here I do a rebuild of all the projects to verify if the issue is resolve but all of them to no avail.
I am getting frustrated with this issue because it's been three days now and i can't still find a solution for this. Please help. I need this issue be fixed ASAP.
Also please see attached image to see the current version I am using and to verify the license validity.
Regards
Hi Ryan
Looks good.
So the only way for the controller to pass information to reportprovider is through the path string and querystring variables. Right ?
Best Regards
Abhishek
Hi,
i often use the same form to show data in View Mode (read only).
Is it possibile to implement the Read Only feature in each ribbon control (i.e. RibbonCheckBox), since your compoents are customized?
It is awful to show some items readonly and some others \\\"disabled\\\"....
Thanks
Regards,
Fabio La Vitola
Hi,
when i set the FormBorderStyle property to "FixedDialog", Ribbon control performs ok, but when i set that property to "Fixed3D" i ALWAYS get a graphics issue around the form.
I attach the 2 print screen.
That issue won't change even if DoubleBuffer is set to True.
The issue is easily replicable creating a brand new project with a Ribbon Form and a ribbon control with 1 combobox into the default group in the first default ribbontab.
Adding some items into the combobx in design time and setting the form's FormBorderStyle property to Fized3D, the issue easily occours...
Thanks
Regards,
Fabio La Vitola
Hi Sonu,
I have refactored the code as you suggested and can confirm that this solution works.
Thanks for your assistance.
Kind Regards,
Andrew
Hi C1,
I need your help, I hope you have the solution for me. I have a C1Flexgrid, I need to set the format of a editable column to "time". So I want the column to display the time on the format (for example) "12:25". The user can only change the time of the column (impossible to enter alphabetic or time greater than 24 and all the other validation possible.
Thank you,
Pascal
Attached is an application that demonstrates the problem.
Note that I'm unable to test with the latest version of the control as it appears to only occur with a licensed version of the control, and my current license doesn't appear to cover the version you linked.
This issue is currently holding up release of a client application, so I definitely appreciate any guidance you can provide.
Thanks!
Hi Sonu,
We have already included the 'IsBusy' property before calling RenderToStream, still facing the same issue.I believe, it is occuring while working inside the RenderToStream(,). Here is the log for your reference:
Message: The component is busy rendering a report. Stack Trace: at C1.C1Report.C1Report.#ACh() at C1.C1Report.C1Report.#xCh() at C1.C1Report.Field.#uxh(Double #nb, Double #ob, Boolean #A5) at C1.C1Report.Field.Render(Layout #9b, Double #nb, Double #ob, Boolean #A5) at C1.C1Report.Field.Render(Layout #9b, Double #nb, Double #ob) at C1.C1Report.Section.Render(Boolean #bEh, Group #cEh) at C1.C1Report.Layout.#Czh(#ryh #Dzh) at C1.C1Report.Layout.#Ezh() at C1.C1Report.Layout.NewPage(Int32 #vb, Boolean #Fzh) at C1.C1Report.Group.Render() at C1.C1Report.C1Report.#EAh() at C1.C1Report.C1Report.#YAh(Boolean #zCh) at C1.C1Report.C1Report.#ACh() at C1.C1Report.C1Report.#xCh() at C1.C1Report.Field.#uxh(Double #nb, Double #ob, Boolean #A5) at C1.C1Report.Field.Render(Layout #9b, Double #nb, Double #ob, Boolean #A5) at C1.C1Report.Field.Render(Layout #9b, Double #nb, Double #ob) at C1.C1Report.Section.Render(Boolean #bEh, Group #cEh) at C1.C1Report.Layout.#Czh(#ryh #Dzh) at C1.C1Report.Layout.#Ezh() at C1.C1Report.Layout.NewPage(Int32 #vb, Boolean #Fzh) at C1.C1Report.Field.#Kxh(Double #ob) at C1.C1Report.Section.Render(Boolean #bEh, Group #cEh) at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.Group.Render() at C1.C1Report.C1Report.#EAh() at C1.C1Report.C1Report.#YAh(Boolean #zCh) at C1.C1Report.C1Report.#ACh() at C1.C1Report.C1Report.#xCh(ExportFilter #Nc, Boolean #Anb) at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt, String idPrefix, String fileName) at C1.C1Report.C1Report.RenderToStream(Stream stream, FileFormatEnum fmt) at ..project call
Hopefully, this will help you out to resolve the issue.
Current version : 4.0.20153
And the same report is working fine with the older version : 1.0.20042
Please help us to sort out this issue.
To be more clear, it is working fine when the format is 'PlainText' and issue when the format is 'PDF' or 'RTF'. Also, we are not using ComponentOne libraries directly to generate reports, but with our code to generate them.
Hi Abhishek,
Thanks for your feedback!
By now, it's right that you only can pass information via query string. Do you have some other use cases? If so, could you provide it to us so that we can improve it?
Thanks.
Regards,
Ryan