| | | StrataFrame Beginner
       
Group: StrataFrame Users Last Login: 12/02/2008 4:27:11 PM Posts: 28, Visits: 394 |
| I added the following code to my app based on a suggestion by one of the forum members because of an issue with Perpetuum and Strataframe:Public Class TransactionReportPrivate Sub Button1_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Button1.ClickDim CardType As String = Me.SetCardType()If ValidateCardTypes() ThenMe.CreditCardTransReportBBS.FillByDate(Me.dtTransDateFilter.Value, CardType, Me.SchoolPCCDefaultsBO1.School_key)If Me.CreditCardTransReportBBS.BusinessObject.Count > 0 ThenMsgBox( "Prepare")TransReport.Prepare() MsgBox( "End Prepare")ElseWith InfoBox.NotifyBoxSettings.SpecialEffect = InfoBoxSpecialEffect.Fade .Sound = MessagingSounds.Notify End WithInfoBox.NotifyBox( "No Records", "There are no " + CardType + " transactions " _& " on " + Me.dtTransDateFilter.Value.ToShortDateString.ToString + " " _& "for " + Trim(Me.SchoolPCCDefaultsBO1.School_name) + ".")End IfEnd IfEnd SubPrivate Sub TransReport_RenderCompleted(ByVal sender As Object, ByVal e As System.EventArgs) Handles TransReport.RenderCompletedMsgBox( "TransREport_rendercompleted")Dim NewThread As Thread = New Thread(New ThreadStart(AddressOf GenReport))NewThread.SetApartmentState(ApartmentState.STA) NewThread.Start() End SubSub GenReport()MsgBox( "GenReportStart")Thread.Sleep(0) Dim previewForm As PerpetuumSoft.Reporting.View.PreviewFormpreviewForm = New PerpetuumSoft.Reporting.View.PreviewForm(TransReport)previewForm.WindowState = FormWindowState.Maximized 'previewForm.ShowDialog(Me)previewForm.ShowDialog() MsgBox( "PreviewForm.ShowDialog.Done")If Not (previewForm Is Nothing) ThenpreviewForm.Dispose() End IfEnd SubEnd class When generating the report it shows the first prepare message and end prepare message. But then nothing happens. The program continues as if everything's fine. It seems to never call the transreport_rendercompleted sub. The Rendercompleted message should show up after end prepare message. BTW, it works fine on my XP development machine and I end up with a report. I know this isn't your product but I you guys do have experience with it. Do you know off hand what it might be, or should I just go to Perpetuum? Thanks, Marcel |
| | | | 
Advanced StrataFrame User
       
Group: StrataFrame Users Last Login: Yesterday @ 7:19:27 PM Posts: 819, Visits: 11,711 |
| | Hi Marcel. Just to check, have you deployed the Perpetuum DLLs? As you mentioned it works fine on your developing machine, I am assuming that the problem is at the client, is that right? |
| | | | StrataFrame Beginner
       
Group: StrataFrame Users Last Login: 12/02/2008 4:27:11 PM Posts: 28, Visits: 394 |
| | Yes I think I added them all to the assemblies in InstallAware. Perpetuum.Charts Perpetuum.Framework.connectivity Perpetuum.Framework. Perpetuum.Framework.Export Perpetuum.Framework.model Perpetuum.instrumentation Perpetuum.Reporting Perpetuum.Writers.Flash Perpetuum.Writers.Svg I also tried creating a report without the thread code modification. A blank report viewer screen pops up, but it never seems to get to the _RenderCompleted Event. It just stops, no errors, no blank report nothing. THen when I close the screen it continues as before. Could this have something to do with threading? I got a deadline for a demo, and I'm pulling my hair (singular since that's all that's left) out. I also put a message up at their site, yesterday, but haven't heard back yet. Thanks, Marcel |
| | | | 
StrataFrame Developer

Group: StrataFrame Developers Last Login: Yesterday @ 7:08:30 PM Posts: 4,811, Visits: 4,781 |
| Could this have something to do with threading? I would definitely say that this seems suspect and I would tend to lean this way. When dealing with threading and events, you have to be careful not to produce a cross thread violation or work outside of the delegates, otherwise you can have things like this pop up. We work in Report Sharp-Shooter every day and it has been working wonderfully, but this is something that we implemented at the base level and so my head is not in it right now. But I will confirm that this sounds to be more of a threading issue than anything else. If I recall, we creating a custom class that inherits one of the ReportShooter classes to present custom dialogs (render, etc.) as we did not really like the defaults...and I have issues when things don't match  If you strip some of the threading and work at it from that approach and don't get anywhere, let me know and I will try to help you dig into a little more. Sorry if I wasn't much help. I also put a message up at their site, yesterday, but haven't heard back yet. I always have to remind myself that they are on the other side of the world. So it generally takes 24-36 hours for me to get a response. |
| |
|
|