Answered by:
CrystalReport PrintToDirect Error

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
-
User-1575149674 posted
alright... so i got exception error after i used custom paper format that i created in the printing preference even
i've copy and paste the width n height of an existing format and pasted it in the custom format
that i made. what i mean is "it does not accept custom made format".. anyone here encountered this problem?help please
Wednesday, April 22, 2015 7:56 AM -
User1644755831 posted
Hello porkblock,
This could be a memory leak issue. Here are some similar cases which might help.
http://forums.asp.net/t/1686146.aspx
http://blog.rongabriel.com/not-enough-storage-is-available-to-process-this-command/
you could try posting this question on crystal report forum.
http://www.crystalreportsbook.com/forum/default.asp
You are likely to get more response from there.
With Regards,
Krunal Parekh
Thursday, April 23, 2015 2:49 AM -
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