Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Sending Embedded AutoCAD DWF
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Internet applications
Title:
Sending Embedded AutoCAD DWF
Miscellaneous
Thread ID:
00341900
Message ID:
00341900
Views:
45
I was expecting to use Rick Strahl's PDF methods in order to send AutoCAD DWF files to the client browser for display.

I did a bit of research to discover the content type for DWG's, and did the following little test:

==============================================================

LPARAMETER lcFormVars, lcIniFile, lnReload

lnReload = 0 && Keep server loaded

lcHeader = "HTTP/1.0 200 OK"+CHR(13) + CHR(10) +;
"Content-type: Model/vnd.dwf" + CHR(13) + CHR(10) +;
"%DWG-4.0-100" + CHR(13) + CHR(10)

lcOutput = FileToStr("C:\INetPub\FTPROOT\HARRIS\LS311-01.dwf")
RETURN lcHeader + lcOutput

===============================================================

Although my browser correctly identified the stream as a DWF file, the plug in gave an error:

"Error: Not a DWF file. Check the file extension or re-create the file."

Has anyone experienced success embedding DWF files? I'm able to read the files OK if I link to them, but I cannot have them on an open directory for security reasons.

TIA
Kogo Michael Hogan

"Pinky, are you pondering what I'm pondering?"
I think so Brain, but "Snowball for Windows"?

Ideate Web Site
Reply
Map
View

Click here to load this message in the networking platform