About C1Schedule printing

Posted by: wknauf on 21 January 2020, 9:13 pm EST

    • Post Options:
    • Link

    Posted 21 January 2020, 9:13 pm EST

    Hi C1,

    just discovered that C1Schedule can be printed ;-).

    But a few questions:

    1. the print options form lacks a printer selection combobox - when clicking “OK” it directly prints to the default printer. When previewing, this is possible.

    2. We use a grouping by resource ("myC1Schedule.GroupBy = “Resource”). This is not supported?

    Best regards

    Wolfgang

  • Posted 21 January 2020, 9:30 pm EST

    And then I tested the “C1SchedulerExtended” dll ;-).

    1. I did not find a website which explains the purpose of C1TableView and C1AgendaView.

    2. when assigning our existing C1Scheduler to a C1TableView, this exception occured:

    
    System.ArgumentException
      HResult=0x80070057
      Message=Der Typ des Werts stimmt nicht mit dem Spaltentyp überein<156957777> konnte nicht in der Id-Spalte gespeichert werden. Erwarteter Typ: Guid.
      Source=System.Data
      StackTrace:
       at System.Data.DataColumn.set_Item(Int32 record, Object value)
       at System.Data.DataRow.set_Item(DataColumn column, Object value)
       at C1.Win.C1Schedule.C1TableView.SetRow(Appointment app, DataRow row)
       at C1.Win.C1Schedule.C1TableView.AddDataRow(Appointment app)
       at C1.Win.C1Schedule.C1TableView.OnAppointmentsLoaded()
       at C1.Win.C1Schedule.BaseTableView.set_Schedule(C1Schedule value)
       at  ... this is our code...
      This exception was originally thrown at this call stack:
    	System.Data.Common.ObjectStorage.Set(int, object)
    	System.Data.DataColumn.this[int].set(int, object)
    
    Inner Exception 1:
    ArgumentException: Der Typ des Werts stimmt nicht mit dem Spaltentyp überein
    
    

    We use an int ID, and it seems C1TableView works only with Guids.

    For C1AgendaView it worked, but the control was empty…

    1. the sample “TableViews” does not seem to update the C1TableView and C1AgendView controls when a new appointment is added to the C1Schedule. Thus I cannot test how non-recurring appointmets look like.

    Best regards

    Wolfgang

  • Posted 23 January 2020, 12:45 am EST

    Hello Wolfgang,

    1. This seems to be by design. If you want to change the printer, please use the Preview button to open PreviewDialog and change the printer from there.
    2. I can observe this. I am discussing this with the developer [ID:418274]
    3. For information in addition to that mentioned in the documentation(https://www.grapecity.com/componentone/docs/win/online-schedule/views.html), you may refer the article: https://www.grapecity.com/blogs/how-to-add-outlook-style-scheduling-to-your-net-apps
    4. I am discussing this as well with the developer.
    5. Using TableViews sample, I can see the new appointment in the Table view. Following are the steps I followed:
    6. Select List from the toolstrip menu.
    7. Add new appointment

      The newly added appointment is visible in the list. Can you please share what you are trying to do with the help of a video?

    Thanks,

    Ruchir

  • Posted 24 January 2020, 1:49 am EST

    1. Sorry, my mistake ;-). The AgendaView displays only appointments in the future, but I created it in the past.

    I think the TableView and AgendaView controls don’t help us in our use cases…

    Best regards

    Wolfgang

  • Posted 26 January 2020, 10:49 pm EST

    Hi Wolfgang,

    Can you share your use case with us? May be an approach exists, or the team can find some workaround for it. If not, we can share it with developers and they might enhance the control to support your case, if they find it feasible.

    Regards,

    Ruchir

  • Posted 27 January 2020, 8:36 pm EST

    Hi Ruchir,

    no need to dig further into this ;-). For our C1Schedule usage, the AgendaView simply does not make sense. And instead of the TableView, we could add a (already existing) custom flexgrid which displays the appointment details and all necessary data of our application.

    I just wanted to understand the possible usage of TableView and AgendaView and wanted to checked whether they might be helpful in our application. The links you provided helped a lot. But the result of my research is “not needed” ;-).

    Best regards

    Wolfgang

    By the way: is the mail notification feature broken? I did not receive forum mails since a few days.

  • Posted 28 January 2020, 7:32 pm EST

    Hello,

    Okay. Do let us know, if you’ve any questions in future.

    >By the way: is the mail notification feature broken? I did not receive forum mails since a few days.

    Yes, currently it’s not working. The developers are aware of this and working towards getting it up and running again.

    With regards,

    Ruchir

  • Posted 28 January 2020, 10:54 pm EST

    Hi Wolfgang,

    Regarding the issue#2, grouping by resource: Sorry but I believe that I misinterpreted and performed incorrect steps. Now, if I just group the scheduler by Resource (using GroupBy method) and then try to print (using PrintInfo.Print method) then it functions well.

    Therefore, can you please elaborate a little further that may help us understand what exactly is the issue you are facing?

    Thanks,

    Ruchir

  • Posted 29 January 2020, 12:54 am EST - Updated 3 October 2022, 3:11 pm EST

    Hi Ruchir,

    attached is a screenshot of our real app (mode “DayView”), with four resource groups, and a printout of the same. You will see that the printed doc does not contain the resource groups.

    The print contains the HTML strings that we use as subject texts, but this is already reported to your support - #418108

    Probably the next step will be that you request a sample ;-)? Currently, I don’t have one.

    Best regards

    Wolfgang

  • Posted 30 January 2020, 1:23 am EST

    Hi Wolfgang,

    Thank you for the description of the issue. Following it, we believe that we have observed the issue you’re describing. So, we don’t need any demo application right now.

    We’ve forwarded the concern to the developers and will get back to you with the update.

    With thanks & regards,

    Ruchir

  • Posted 30 January 2020, 3:37 pm EST

    Hi,

    We’ve received an update on the issue of printing with groups: Developers have confirmed that it’s a limitation, that is C1Scheduler ignores grouping at printing.

    Regards,

    Ruchir

  • Posted 2 February 2020, 10:32 pm EST

    Thanks! Currently, printing would be a nice to have feature, but we don’t have customer requests for this. And as long as HTML output does not work, we cannot use it anyway.

    Wolfgang

  • Posted 3 February 2020, 4:34 pm EST

    Hi,

    Regarding the request for HTML output, you will be kept updated with the progress over the respective SupportOne case.

    ~Thanks,

  • Posted 17 February 2020, 10:15 pm EST

    Hi Wolfgang,

    Just as an update, I wanted to inform you that the team has fixed the issue and now, no exception is thrown when appointment key is an integer value.

    The fix might be available in the next public release.

    Thanks,

    Ruchir

  • Posted 18 February 2020, 7:21 pm EST

    Thanks - though I will not use C1TableView ;-).

    Best regards

    Wolfgang

Need extra support?

Upgrade your support plan and get personal unlimited phone support with our customer engagement team

Learn More

Forum Channels