locked
CrystalReport PrintToDirect Error RRS feed

  • Question

  • User-1575149674 posted
                    PrintDialog pDialog = new PrintDialog();
    
                    PrinterSettings pSettings = new PrinterSettings();
    
                    pDialog.ShowDialog();
    
                    pSettings = pDialog.PrinterSettings; 
                    PageSettings pSize = new PageSettings(pSettings); 
    ReportDocument cryRpt = new ReportDocument(); cryRpt.Load(@"crystal.rpt"); cryRpt.SetDataSource(Ds.Tables[0]); cryRpt.PrintOptions.PrinterName = "printer";
    cryRpt.PrintOptions.CopyFrom(pSettings, pSize); cryRpt.PrintToPrinter(1, false, 0, 0);

    i have problem when changing the page layout into custom format. 

    it catches "Not enough storage is available to process this command".

    anyone here encountered this problem?

    Wednesday, April 22, 2015 5:19 AM

Answers

  • User-1575149674 posted

    Thanks for the help sir Krunal 

    i've already fixed the error, memory issue was not the problem, its the page setup that cause the memory issue
    i'm using custom page size that's why, i found out that the custom size that i "set in printing preference"
    was not the set in crystal report setup page.

    anyway i have a new problem in crystal report that is too serious.. let me post the link here:
    i hope someone would help me thanks.
    http://stackoverflow.com/questions/29873159/struggling-in-crystal-report-margin


    • Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
    Sunday, April 26, 2015 3:06 AM

All replies