Using DevExpress reports

0
0

Hi, (hopefully) a simple question,

My orignal .Net WinForms application uses DevExpress reports, and almost every other control. I’ve managed to re-create a sample application without the need of those controls however I do want to use the DevExpress reporting features as all my designs are in there and I need some, if not most features.

How can I still use DevExpress to create & export these reports? Is there a sample somewhere? I need my application to atleast display result pdf documents created by the DevExpress report. I’m having a bit of trouble navigating through your documentation and can’t find how controls work that are supplied with WiseJ. (That might just be me haha).

Hope you can help me out

 

Vincent

  • You must to post comments
0
0

This works like a charm! I do have to test it on a mobile but for desktops it works!


Dim DevExpressReport As New NotificationReport

DevExpressReport.CreateDocument()

Dim tempStream As New IO.MemoryStream

DevExpressReport.ExportToPdf(tempStream, Nothing)

Dim PdfViewerDialog As New Report

With PdfViewerDialog
.PdfViewer1.PdfStream = tempStream
.ShowDialog()
End With

PdfViewerDialog.Dispose()


 

  • Luca (ITG)
    If you change the PdfViewer to Mozilla you can use the newer pdfjs viewer. Which you can also deploy locally and set pdfViewer to custom and the url to the local deployment and add ?file=[source]. https://github.com/mozilla/pdf.js/ and https://mozilla.github.io/pdf.js/web/viewer.html it gives you page thumbnails and search in document.
  • vincent_
    Thanks, I will give this a go on a later stadium. This works just fine as it is now :D I just need users to be able to view reports generated by my applications and print them if they need to. I’ve tested on Android too and this is awsome! Thanks again for the quick support!
  • You must to post comments
0
0

The easiest way is to create a pdf file or stream and use the Wisej.Web.PdfViewer control.

  • vincent_
    I will give this a go, thanks for the quick reply! I will update this thread when I’ve managed to get it to work or if I still have questions.
  • You must to post comments
Showing 2 results
Your Answer

Please first to submit.