private static string CreateUrl(Report report, string instanceID, bool isResourceStreamRoot, string iterationId)
        {
            string str = isResourceStreamRoot ? "ResourceStreamID" : "StreamID";
            //UriBuilder handlerUri = ReportViewerFactory.HttpHandler.HandlerUri;
            string str2 = ReportDataOperation.BaseQuery(report, instanceID) + "&OpType=ReportImage&";

            if (!isResourceStreamRoot)
            {
                if (iterationId == null)
                {
                    iterationId = Guid.NewGuid().ToString("N");
                }
                str2 = str2 + "IterationId=" + HttpUtility.UrlEncode(iterationId) + "&";
            }
            str2 = (str2 + str + "=");
            return(str2);
        }
Esempio n. 2
0
 public static string CreateQuery(Report report, string instanceID)
 {
     return(ReportDataOperation.BaseQuery(report, instanceID) + "&OpType=PrintRequest");
 }