I'm still trying to figure this out. I think bw2868bond got me almost there. Thanks for your help! Does anyone else have a suggestion not that I can hook into the paint event? I'll try anything.
Thanks!
Thanks!
--- In vantage@yahoogroups.com, "scottkreel" <skreel@...> wrote:
>
> Hooking into the paint event seems to partially work. It allowed me to change the sortby and style drop down boxes, but it's not quite working yet. Although the drop down boxes change, it would appear that the values of these drop down boxes that are passed to the crystal report do not change. The style and sortby of the report that is generated is that of the defaults, not of the changes made in the paint event.
>
> I tried using the SelectedRow property of the EpiUltraCombo control instead of the ActiveRow, but that didn't seem to work either.
>
> I'm more of a c#/asp.net person, so 'm not as up to date on how binding and everything works in a windows form app.
>
> Any suggestions would be greatly appreciated. I'll post the outcomes whether successful or not.
>
>
> --- In vantage@yahoogroups.com, "bw2868bond" <bwalker@> wrote:
> >
> > Try this
> >
> > '//**************************************************
> > '// Custom VB.NET code for StockStatusReportForm
> > '// Created: 3/26/2009 8:06:05 PM
> > '//**************************************************
> > Imports System
> > Imports System.Data
> > Imports System.Diagnostics
> > Imports System.Windows.Forms
> > Imports System.ComponentModel
> > Imports Microsoft.VisualBasic
> > Imports Epicor.Mfg.UI
> > Imports Epicor.Mfg.UI.FrameWork
> > Imports Epicor.Mfg.UI.ExtendedProps
> > Imports Epicor.Mfg.UI.FormFunctions
> > Imports Epicor.Mfg.UI.Customization
> > Imports Epicor.Mfg.UI.Adapters
> > Imports Epicor.Mfg.UI.Searches
> >
> >
> > Module Script
> >
> >
> > '// ** Wizard Insert Location - Do Not Remove 'Begin/End Wizard Added Module Level Variables' Comments! **
> > '// Begin Wizard Added Module Level Variables **
> >
> > '// End Wizard Added Module Level Variables **
> >
> >
> > '// Add Custom Module Level Variables Here **
> > Private WithEvents cboSortBy As EpiUltraCombo
> >
> >
> > Sub InitializeCustomCode()
> >
> >
> > '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Variable Intialization' lines **
> > '// Begin Wizard Added Variable Intialization
> >
> > '// End Wizard Added Variable Intialization
> > '// Begin Custom Method Calls
> >
> > '// End Custom Method Calls
> > End Sub
> >
> >
> >
> > Sub DestroyCustomCode()
> >
> >
> > '// ** Wizard Insert Location - Do not delete 'Begin/End Wizard Added Object Disposal' lines **
> > '// Begin Wizard Added Object Disposal
> >
> > '// End Wizard Added Object Disposal
> > '// Begin Custom Code Disposal
> >
> > '// End Custom Code Disposal
> > End Sub
> >
> >
> > Private Sub StockStatusReportForm_Load(ByVal sender As object, ByVal args As EventArgs) Handles StockStatusReportForm.Load
> > '//
> > '// Add Event Handler Code
> > '//
> > cboSortBy = CType(csm.GetNativeControlReference("066cedf0-4e3b-4dfa-873f-747cd2e2e3ed"), Epicor.Mfg.UI.FrameWork.EpiUltraCombo)
> > End Sub
> >
> >
> > Private Sub cboSortBy_Paint(ByVal Sender As Object, ByVal Args As System.Windows.Forms.PaintEventArgs) Handles cboSortBy.Paint
> > '// ** Place Event Handling Code Here **
> > cboSortBy.ActiveRow = cboSortBy.Rows(cboSortBy.Rows.Count-1)
> > End Sub
> >
> >
> > End Module
> >
> >
> > --- In vantage@yahoogroups.com, "scottkreel" <skreel@> wrote:
> > >
> > > We created another menu item. So we have two menu items for the same report. We want one to have certain defaults and we want the other to have different defaults. The problem is, when I set the defaults in one, it changes the defaults in the other. If there is a way where I can have separate defaults for each menu item, that would work too.
> >
>