am trying to view the report using the printengine functions ...i am able to view the report but its on only a fraction of second and disappears.... any one can help me regarding this
the code i have used is ....
intMainJob = PEOpenPrintJob("c:\envelope.rpt"
ParamFieldInfo.StructSize = PE_SIZEOF_PARAMETER_FIELD_INFO
intResult = PESetAllowPromptDialog(intMainJob, 0)
intResult = PEGetNthParameterField(intMainJob, 0, ParamFieldInfo)
ParamFieldInfo.CurrentValue = "000050"
ParamFieldInfo.CurrentValueSet = True
intResult = PESetNthParameterField(intMainJob, 0, ParamFieldInfo)
intResult = PEOutputToWindow(intMainJob, "envelope", 0, 0, 1100, 1100, 0, 0)
'intResult = crPEExportToHTML(intMainJob, FormatType, "c:\amar\myfilename.html" & vbNullChar)
intResult = PEExportPrintWindow(intMainJob, False, True)
' intResult = crPEExportToDisk(mainjob, "c:\amar\myfilename.xml" & vbNullChar, FormatDLLName & vbNullChar, FormatType, 1, 1, StringDelimiter & vbNullChar, FieldDelimiter & vbNullChar)
' Start the print job
intResult = PEStartPrintJob(intMainJob, 1)
' Close the print job
PEClosePrintJob (intMainJob)
' Close the engine
PECloseEngine
i donno why this is happening ....can anybody help me with this
the code i have used is ....
intMainJob = PEOpenPrintJob("c:\envelope.rpt"
ParamFieldInfo.StructSize = PE_SIZEOF_PARAMETER_FIELD_INFO
intResult = PESetAllowPromptDialog(intMainJob, 0)
intResult = PEGetNthParameterField(intMainJob, 0, ParamFieldInfo)
ParamFieldInfo.CurrentValue = "000050"
ParamFieldInfo.CurrentValueSet = True
intResult = PESetNthParameterField(intMainJob, 0, ParamFieldInfo)
intResult = PEOutputToWindow(intMainJob, "envelope", 0, 0, 1100, 1100, 0, 0)
'intResult = crPEExportToHTML(intMainJob, FormatType, "c:\amar\myfilename.html" & vbNullChar)
intResult = PEExportPrintWindow(intMainJob, False, True)
' intResult = crPEExportToDisk(mainjob, "c:\amar\myfilename.xml" & vbNullChar, FormatDLLName & vbNullChar, FormatType, 1, 1, StringDelimiter & vbNullChar, FieldDelimiter & vbNullChar)
' Start the print job
intResult = PEStartPrintJob(intMainJob, 1)
' Close the print job
PEClosePrintJob (intMainJob)
' Close the engine
PECloseEngine
i donno why this is happening ....can anybody help me with this