c# - CrystalReports: Show Parameter-Dialog on Export to file (e.g. PDF) -


we're trying show parameter-dialog exporting file. if cannot show dialog, export states not parameter values have been set. showing report in crystalreports reportviewer control, dialog gets shown automatically , works fine export not able show dialog or fill missing values. not want implement our own parameter-dialog. want use standard one? has working code scenario? appreciated.

used programs: - visual studio 2012 , crystalreports 2013

after fighting same problem solution was:

        var crv = new crystalreportviewer();         crv.reportsource = reportdocument;         crv.reuseparametervaluesonrefresh = true;         crv.showfirstpage(); 

eventhough forums suggest calling crystalreportviewer.refreshreport() fails constantly. magic done via showfirstpage().

another hint on crystalreports : order matter!


Comments

Popular posts from this blog

Android layout hidden on keyboard show -

google app engine - 403 Forbidden POST - Flask WTForms -

c - Why would PK11_GenerateRandom() return an error -8023? -