Hello, please can anyone help with comprehensive steps on how to go about reports using stimulsoft and pdfviewer control in wisej 3.5.
I have read up everything provided in the forum, but still having difficulties understanding them, I’m new to wisej.
It would have been nice if the developers upload a video about reports, cause I can’t seem to find any video online.
Hello,
i integrated Stimulsoft in the Wisej environment.
I did it with VB.NET and using
Wisej.Web.Ext.AspNetControl.AspNetWrapper<Stimulsoft.Report.Web.StiWebDesigner>
With using some own classes, in the application i only have to do the following:
Dim preview As New emWebReportPreview(New CallParams(em, Me))
ds.DataSetName = “DataSet”
preview.AddDataSource(“DataSet”, ds)
preview.AddVariable(“SystemLang”, em.SystemLang)
preview.AddVariable(“SystemVersion”, em.SystemVersion)
preview.AddVariable(“Lizenz”, “”)
preview.AddVariable(“Unternehmen”, em.Company + ” – ” + em.UserID)
preview.AddVariable(“Wirtschaftsjahr”, WJahr.JahrName)
preview.AddVariable(“Tagesdatum”, Now)
preview.AddVariable(“SystemPfad”, em.SystemPath)
preview.AddVariable(“Titel”, IIf(pArt = 0, “Kunden”, “Lieferanten”) + “stammliste”)
preview.AddVariable(“Auswahl”, sAuswahl)
preview.Designer = False
preview.ReportName = ReportSearchFile(em, “Personenstammliste”)
preview.Show()
After Show a new Window is shown, with the Stimulsoft-Viewer in it.
With a Button (if i allow it) i change to the Stimulsoft Editor.
Because there are a lot of special internal functions and variables in my classes, i cannot send you a sample.
But you can write me on Email: rieger@rieger.at
As Stimulsoft is a third-party software that we don’t develop, you’ll have to explore their documentation for more guidance on that specific part. https://www.stimulsoft.com/en/documentation
Looks like Stimulsoft does have some YouTube tutorials, I would start there: https://www.youtube.com/user/stimulsoftvideos
Steps:
1.Follow the Stimulsoft tutorials/documentation, up to generating a PDF of the report.
2. Display the PDF in Wisej using the PDFViewer. You have some options:
2a. Render the report to a pdf file. Display the pdf file in the PDFViewer, assigning it via the variable PdfSource. If you look at the demobrowser code this is the method that is used.
The code looks like this: pdfViewer1.PdfSource = "Files/Wisej.pdf";
2b. Render the report to a stream and assign the stream to pdfViewer.PdfStream
Relevant Wisej samples+ documentation:
PDFViewer documentation: https://docs.wisej.com/api/wisej.web/content/pdfviewer
You can see an example of the PDFViewer in the demobrowser here: https://wisej-demobrowser.azurewebsites.net/#Containers/PdfViewer/Features
The entire code of the demobrowser is on github. Here is the PDFViewer demo part of the code. Look at the file Features.cs specifically (both look at it in the designer and look at the code): https://github.com/iceteagroup/wisej-demobrowser/tree/main/Demos/Containers/Wisej.DemoBrowser.PdfViewer
-Julie
Please login first to submit.