Ok. Thanks... I did what you mentioned too concerning the page height and
I agree that it "smokes" if I'm on a 100k bandwith. The problem is that the
What would be great is if I could do the rendering locally. Something like
binding to the printer activex control MS just released with RS sp2. If
"Dwayne J. Baldwin" <djbaldwin@winhurst.com> wrote in message
news:OP8RlnCpFHA.764@TK2MSFTNGP14.phx.gbl...
>> If you're inclined to look at it - a good URL explaining the code I'm
>> using is at:
>>
http://blogs.msdn.com/bryanke/articles/71491.aspx#code >
> That's the exact code that I'm using, except I ported it to vb.net. If I
> recall, there were two issues that I needed to fix,
>
> In ReportDrawPage width and height were never used...
>
> // Set the metafile delegate.
> int width = m_metafile.Width;
> int height= m_metafile.Height;
> m_delegate = new Graphics.EnumerateMetafileProc(MetafileCallback);
> // Draw in the rectangle
> Point destPoint = new Point(0, 0);
> g.EnumerateMetafile(m_metafile,destPoint , m_delegate);
>
> So I changed it to this to properly size the rendered image...
>
> Rectangle destPoint = new Rectangle(0,0,m_metafile.Width,
> m_metafile.Height)
>
> And commented out a simple flaw in the errort trap in RenderReport
>
> finally
> {
> // Console.WriteLine("Number of pages: {0}", pages.Length);
>
> Just comment out the console message. If an error occurs before 'pages' is
> set, a new exception is thrown on pages.Length. It just needs some work.
>
> Otherwise, the code works fine when you provide the proper credentials and
> report info. Keep in mind that the first access will always have a
> performance hit until asp.net compiles the report server, then a minor hit
> as the credentials are passed.
>
> After that it simply smokes.
>
> You really need to profile your app to see what is happening.
>
> Let me know if you need anything more.
>