printed result on Citrix and local do not look like the same.

Posted by: bdota on 8 September 2017, 2:36 pm EST

  • Posted 8 September 2017, 2:36 pm EST

    I am setting UseSmartPrint to true and just saying mySpread.PrintSheet(mySpread.ActiveSheet)

    when I am running my application locally, it is printing fine, but when I run it on Citrix, some cells are broken into TWO lines . I thought it is maybe because of the different resolution of my monitor and Citrix machines so I set mine to a lower resolution , but still my local print cell data is printed in one line but on Citrix it isi printed in two lines.

    any thoughts?

     

    thanks 

  • Replied 8 September 2017, 2:36 pm EST

    and here are my setting for PrintInto object:

               printInfo.ShowShadows = false;

                printInfo.UseMax = false;

                printInfo.UseSmartPrint = true;

                printInfo.ShowPrintDialog = true;

                printInfo.PrintType = FarPoint.Win.Spread.PrintType.All; 

  • Replied 8 September 2017, 2:36 pm EST

    First I would try printing without the UseSmartPrint = true (i.e. normally) if that doesn't work for you then you need to adjust your SmartPrintRules. These rules include BestFitColumnRule, LandscapeRule, and ScaleRule. SmartPrint makes a lot of scaling decisions based upon trying to fit your print job on 1 page.
  • Replied 8 September 2017, 2:36 pm EST

    Hi,

    Are you sure the issue is not related to a difference in printers or print drivers?  It sounds like the DPI is not consistent between the two printouts.  Spread cannot tell the context of the printing; it is just drawing to the device context provided.

  • Replied 8 September 2017, 2:36 pm EST

    seanl:

    Hi,

    Are you sure the issue is not related to a difference in printers or print drivers?  It sounds like the DPI is not consistent between the two printouts.  Spread cannot tell the context of the printing; it is just drawing to the device context provided.

    Hmm.. well in both cases (running the application through Visual Studio on my machine and printing  Or running the app through Citrix and printing)  I am still picking the Same physical printer...so does it still matter? 

  • Replied 8 September 2017, 2:36 pm EST

    paul1960:
    First I would try printing without the UseSmartPrint = true (i.e. normally) if that doesn't work for you then you need to adjust your SmartPrintRules. These rules include BestFitColumnRule, LandscapeRule, and ScaleRule. SmartPrint makes a lot of scaling decisions based upon trying to fit your print job on 1 page.

     

    yeh if I print normally, it does not fit in one page, which is Not what I want however smartprint is smart enough and prints it in Landscape mode.  

  • Replied 8 September 2017, 2:36 pm EST

    Hi,

    What I am not sure of, is whether the print driver for this printer is the same in Citrix, or whether the VM emulation is causing a difference in how the print driver operates.  There should be no difference in how the Spread draws to the device context, but a difference in how the print driver operates might cause differences in the results.  Do you see differences in how this printer works in and out of Citrix with other applications?

  • Replied 8 September 2017, 2:36 pm EST

    " Do you see differences in how this printer works in and out of Citrix with other applications? "

     

    thanks for follow up.

    I cannot tell for sure,  will do some investigation and let you know

    and it is occurring in the Headers of the spread. although there is still enough room in the cell to print the header in one line, it is printing it in two lines. 

     

    thanks 


Need extra support?

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

Learn More

Forum Channels